used DESCRIPTOR_SET_TYPE_COUNT instead of "(size_t)DescriptorSetType::RANGE_SIZE"
This commit is contained in:
parent
9fd13680d1
commit
eb8e0a921b
@ -39,7 +39,7 @@ namespace hgl
|
|||||||
MVPArrayBuffer *mvp_array;
|
MVPArrayBuffer *mvp_array;
|
||||||
List<Renderable *> ri_list;
|
List<Renderable *> ri_list;
|
||||||
|
|
||||||
VkDescriptorSet ds_list[(size_t)DescriptorSetType::RANGE_SIZE];
|
VkDescriptorSet ds_list[DESCRIPTOR_SET_TYPE_COUNT];
|
||||||
DescriptorSet *renderable_desc_sets;
|
DescriptorSet *renderable_desc_sets;
|
||||||
|
|
||||||
uint32_t ubo_offset;
|
uint32_t ubo_offset;
|
||||||
@ -54,7 +54,7 @@ namespace hgl
|
|||||||
private:
|
private:
|
||||||
|
|
||||||
Pipeline * last_pipeline;
|
Pipeline * last_pipeline;
|
||||||
MaterialParameters *last_mp[(size_t)DescriptorSetType::RANGE_SIZE];
|
MaterialParameters *last_mp[DESCRIPTOR_SET_TYPE_COUNT];
|
||||||
uint32_t last_vbo;
|
uint32_t last_vbo;
|
||||||
|
|
||||||
void Render(Renderable *);
|
void Render(Renderable *);
|
||||||
|
@ -112,7 +112,7 @@ bool RenderCmdBuffer::BindDescriptorSets(Renderable *ri)
|
|||||||
uint32_t count=0;
|
uint32_t count=0;
|
||||||
|
|
||||||
MaterialParameters *mp;
|
MaterialParameters *mp;
|
||||||
VkDescriptorSet ds[(size_t)DescriptorSetType::RANGE_SIZE];
|
VkDescriptorSet ds[DESCRIPTOR_SET_TYPE_COUNT];
|
||||||
|
|
||||||
ENUM_CLASS_FOR(DescriptorSetType,int,i)
|
ENUM_CLASS_FOR(DescriptorSetType,int,i)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user