Fixing destruction

This commit is contained in:
Dynamitos
2024-07-18 11:45:56 +02:00
parent 67c4ce2f7a
commit 3b6eb3ebcc
31 changed files with 173 additions and 82 deletions
+6
View File
@@ -63,6 +63,12 @@ void Material::init(Gfx::PGraphics graphics) {
});
}
void Material::destroy() {
floatBuffer = nullptr;
set = nullptr;
layout = nullptr;
}
void Material::updateDescriptor() {
floatBuffer->rotateBuffer(floatData.size() * sizeof(float));
floatBuffer->updateContents(ShaderBufferCreateInfo{