add dynamic param at DescriptorSets::Bind....functions.
This commit is contained in:
parent
63c6aee8e6
commit
3fa5c3c032
@ -35,13 +35,15 @@ public:
|
|||||||
|
|
||||||
~DescriptorSets()=default;
|
~DescriptorSets()=default;
|
||||||
|
|
||||||
const uint32_t GetCount ()const{return count;}
|
const uint32_t GetCount ()const{return count;}
|
||||||
const VkDescriptorSet * GetDescriptorSets ()const{return &desc_set;}
|
const VkDescriptorSet * GetDescriptorSets ()const{return &desc_set;}
|
||||||
const VkPipelineLayout GetPipelineLayout ()const{return pipeline_layout;}
|
const VkPipelineLayout GetPipelineLayout ()const{return pipeline_layout;}
|
||||||
|
|
||||||
void Clear();
|
void Clear();
|
||||||
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 *buf,bool dynamic=false);
|
||||||
|
bool BindUBO(const int binding,const GPUBuffer *buf,const VkDeviceSize offset,const VkDeviceSize range,bool dynamic=false);
|
||||||
|
|
||||||
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();
|
||||||
|
@ -69,17 +69,17 @@ void DescriptorSets::Clear()
|
|||||||
wds_list.ClearData();
|
wds_list.ClearData();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool DescriptorSets::BindUBO(const int binding,const GPUBuffer *buf)
|
bool DescriptorSets::BindUBO(const int binding,const GPUBuffer *buf,bool dynamic)
|
||||||
{
|
{
|
||||||
if(binding<0||!buf)
|
if(binding<0||!buf)
|
||||||
return(false);
|
return(false);
|
||||||
|
|
||||||
wds_list.Add(WriteDescriptorSet(desc_set,binding,buf->GetBufferInfo(),buf->IsDynamic()));
|
wds_list.Add(WriteDescriptorSet(desc_set,binding,buf->GetBufferInfo(),dynamic));
|
||||||
|
|
||||||
return(true);
|
return(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool DescriptorSets::BindUBO(const int binding,const GPUBuffer *buf,const VkDeviceSize offset,const VkDeviceSize range)
|
bool DescriptorSets::BindUBO(const int binding,const GPUBuffer *buf,const VkDeviceSize offset,const VkDeviceSize range,bool dynamic)
|
||||||
{
|
{
|
||||||
if(binding<0||!buf)
|
if(binding<0||!buf)
|
||||||
return(false);
|
return(false);
|
||||||
@ -88,7 +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,buf->IsDynamic()));
|
wds_list.Add(WriteDescriptorSet(desc_set,binding,buf_info,dynamic));
|
||||||
return(true);
|
return(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user