delete subindex function (#11667)

* delete subindex function
This commit is contained in:
minggo
2022-06-23 14:53:02 +08:00
committed by GitHub
parent 0077fee553
commit 4b8b032ad8
6 changed files with 15 additions and 13 deletions
+1 -1
View File
@@ -582,7 +582,7 @@ gfx::DescriptorSetLayout *ProgramLib::getDescriptorSetLayout(gfx::Device *device
info.bindings = pipeline::localDescriptorSetLayout.bindings;
tmplInfo.setLayouts.replace(static_cast<index_t>(pipeline::SetIndex::LOCAL), device->createDescriptorSetLayout(info));
}
return tmplInfo.setLayouts.at(isLocal ? static_cast<index_t>(pipeline::SetIndex::LOCAL) : static_cast<index_t>(pipeline::SetIndex::MATERIAL));
return tmplInfo.setLayouts.at(isLocal ? static_cast<uint32_t>(pipeline::SetIndex::LOCAL) : static_cast<uint32_t>(pipeline::SetIndex::MATERIAL));
}
ccstd::string ProgramLib::getKey(const ccstd::string &name, const MacroRecord &defines) {