forked from Dynamitos/Seele
Fixing descriptors a little
This commit is contained in:
1 parent
a9ac3d14a7
commit
c1e4891456
8 files changed
+35
-47
No files matched your search
@@ -39,6 +39,7 @@ MaterialInstance::MaterialInstance(uint64 id,
|
||||
OShaderParameter param;
|
||||
Serialization::load(buffer, param);
|
||||
parameters.add(std::move(param));
|
||||
buffer.rewind();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,7 +51,6 @@ MaterialInstance::~MaterialInstance()
|
||||
void MaterialInstance::updateDescriptor()
|
||||
{
|
||||
Gfx::PDescriptorLayout layout = baseMaterial->getMaterial()->getDescriptorLayout();
|
||||
layout->reset();
|
||||
descriptor = layout->allocateDescriptorSet();
|
||||
for (auto& param : parameters)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user