forked from Dynamitos/Seele
somewhat fixed threadpool
This commit is contained in:
1 parent
01049019fd
commit
ad09492e3e
20 files changed
+71
-90
No files matched your search
@@ -152,10 +152,9 @@ void MaterialAsset::endFrame()
|
||||
{
|
||||
}
|
||||
|
||||
void MaterialAsset::updateDescriptorData()
|
||||
Gfx::PDescriptorSet MaterialAsset::createDescriptorSet()
|
||||
{
|
||||
layout->reset();
|
||||
descriptorSet = layout->allocateDescriptorSet();
|
||||
Gfx::PDescriptorSet descriptorSet = layout->allocateDescriptorSet();
|
||||
BulkResourceData uniformUpdate;
|
||||
uniformUpdate.size = uniformDataSize;
|
||||
uniformUpdate.data = uniformData;
|
||||
@@ -169,8 +168,10 @@ void MaterialAsset::updateDescriptorData()
|
||||
descriptorSet->updateBuffer(uniformBinding, uniformBuffer);
|
||||
}
|
||||
descriptorSet->writeChanges();
|
||||
return descriptorSet;
|
||||
}
|
||||
|
||||
|
||||
const Gfx::ShaderCollection* MaterialAsset::getShaders(Gfx::RenderPassType renderPass, VertexInputType* vertexInput) const
|
||||
{
|
||||
Gfx::ShaderPermutation permutation;
|
||||
|
||||
Reference in new issue
Block a user