removed BindUBODynamic function in VKDescriptorSets
This commit is contained in:
parent
626c0cd3bf
commit
70715e93e8
@ -42,7 +42,6 @@ public:
|
|||||||
void Clear();
|
void Clear();
|
||||||
bool BindUBO(const int binding,const GPUBuffer *);
|
bool BindUBO(const int binding,const GPUBuffer *);
|
||||||
bool BindUBO(const int binding,const GPUBuffer *,const VkDeviceSize offset,const VkDeviceSize range);
|
bool BindUBO(const int binding,const GPUBuffer *,const VkDeviceSize offset,const VkDeviceSize range);
|
||||||
bool BindUBODynamic(const int binding,const GPUBuffer *);
|
|
||||||
bool BindSampler(const int binding,Texture *,Sampler *);
|
bool BindSampler(const int binding,Texture *,Sampler *);
|
||||||
bool BindInputAttachment(const int binding,Texture *);
|
bool BindInputAttachment(const int binding,Texture *);
|
||||||
void Update();
|
void Update();
|
||||||
|
@ -20,7 +20,9 @@ namespace
|
|||||||
descriptorType = desc_type;
|
descriptorType = desc_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
WriteDescriptorSet(VkDescriptorSet desc_set,const uint32_t binding,const VkDescriptorBufferInfo *buf_info,const VkDescriptorType desc_type=VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER):WriteDescriptorSet(desc_set,binding,desc_type)
|
WriteDescriptorSet(VkDescriptorSet desc_set,const uint32_t binding,const VkDescriptorBufferInfo *buf_info,const bool dynamic):
|
||||||
|
WriteDescriptorSet(desc_set,binding,dynamic?VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC:
|
||||||
|
VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER)
|
||||||
{
|
{
|
||||||
pImageInfo = nullptr;
|
pImageInfo = nullptr;
|
||||||
pBufferInfo = buf_info;
|
pBufferInfo = buf_info;
|
||||||
@ -72,7 +74,8 @@ bool DescriptorSets::BindUBO(const int binding,const GPUBuffer *buf)
|
|||||||
if(binding<0||!buf)
|
if(binding<0||!buf)
|
||||||
return(false);
|
return(false);
|
||||||
|
|
||||||
wds_list.Add(WriteDescriptorSet(desc_set,binding,buf->GetBufferInfo()));
|
wds_list.Add(WriteDescriptorSet(desc_set,binding,buf->GetBufferInfo(),buf->IsDynamic()));
|
||||||
|
|
||||||
return(true);
|
return(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -85,16 +88,7 @@ bool DescriptorSets::BindUBO(const int binding,const GPUBuffer *buf,const VkDevi
|
|||||||
|
|
||||||
buffer_list.Add(buf_info);
|
buffer_list.Add(buf_info);
|
||||||
|
|
||||||
wds_list.Add(WriteDescriptorSet(desc_set,binding,buf_info));
|
wds_list.Add(WriteDescriptorSet(desc_set,binding,buf_info,buf->IsDynamic()));
|
||||||
return(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool DescriptorSets::BindUBODynamic(const int binding,const GPUBuffer *buf)
|
|
||||||
{
|
|
||||||
if(binding<0||!buf)
|
|
||||||
return(false);
|
|
||||||
|
|
||||||
wds_list.Add(WriteDescriptorSet(desc_set,binding,buf->GetBufferInfo(),VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC));
|
|
||||||
return(true);
|
return(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user