Trying to fix memory usage, made it worse and nothing works

This commit is contained in:
Dynamitos
2024-08-08 22:14:25 +02:00
parent 3f8ce3a25e
commit ac72377210
13 changed files with 172 additions and 284 deletions
@@ -32,22 +32,12 @@ class StaticMeshVertexData : public VertexData {
virtual void resizeBuffers() override;
virtual void updateBuffers() override;
void swapOut();
void swapIn();
Gfx::OShaderBuffer positions;
Array<Vector4> positionData;
Gfx::OShaderBuffer texCoords[MAX_TEXCOORDS];
Array<Vector2> texCoordsData[MAX_TEXCOORDS];
Gfx::OShaderBuffer normals;
Array<Vector4> normalData;
Gfx::OShaderBuffer tangents;
Array<Vector4> tangentData;
Gfx::OShaderBuffer biTangents;
Array<Vector4> biTangentData;
Gfx::OShaderBuffer colors;
Array<Vector4> colorData;
bool swappedOut = false;
Gfx::ODescriptorLayout descriptorLayout;
Gfx::PDescriptorSet descriptorSet;
};