used DESCRIPTOR_SET_TYPE_COUNT

This commit is contained in:
2023-03-20 13:35:04 +08:00
parent 3a378be660
commit 35a282ef5e
6 changed files with 15 additions and 10 deletions

View File

@@ -50,7 +50,7 @@ MaterialDescriptorSets::MaterialDescriptorSets(const UTF8String &name,ShaderDesc
}
}
VkDescriptorSetLayoutBinding *dsl_bind[size_t(DescriptorSetType::RANGE_SIZE)];
VkDescriptorSetLayoutBinding *dsl_bind[DESCRIPTOR_SET_TYPE_COUNT];
{
ENUM_CLASS_FOR(DescriptorSetType,int,i)

View File

@@ -9,10 +9,10 @@ struct PipelineLayoutData
{
VkDevice device;
int binding_count[size_t(DescriptorSetType::RANGE_SIZE)];
VkDescriptorSetLayout layouts[size_t(DescriptorSetType::RANGE_SIZE)];
int binding_count[DESCRIPTOR_SET_TYPE_COUNT];
VkDescriptorSetLayout layouts[DESCRIPTOR_SET_TYPE_COUNT];
VkDescriptorSetLayout fin_dsl[size_t(DescriptorSetType::RANGE_SIZE)];
VkDescriptorSetLayout fin_dsl[DESCRIPTOR_SET_TYPE_COUNT];
uint32_t fin_dsl_count;
VkPipelineLayout pipeline_layout;