forked from Dynamitos/Seele
Fixing destruction
This commit is contained in:
1 parent
67c4ce2f7a
commit
3b6eb3ebcc
31 files changed
+173
-82
No files matched your search
@@ -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{
|
||||
|
||||
Reference in new issue
Block a user