Remove memory allocations in some hot paths

This commit is contained in:
Kelebek1
2023-05-23 14:45:54 +01:00
parent 72a469b967
commit c7430e51e3
84 changed files with 501 additions and 458 deletions
+2 -1
View File
@@ -84,7 +84,8 @@ struct RuntimeInfo {
bool glasm_use_storage_buffers{};
/// Transform feedback state for each varying
std::vector<TransformFeedbackVarying> xfb_varyings;
std::array<TransformFeedbackVarying, 256> xfb_varyings{};
u32 xfb_count{0};
};
} // namespace Shader