removed PerObject of DescriptorSetType
This commit is contained in:
@@ -105,9 +105,6 @@ bool RenderCmdBuffer::BindDescriptorSets(Renderable *ri)
|
||||
{
|
||||
if(!ri)return(false);
|
||||
|
||||
uint32_t *dynamic_offset=nullptr;
|
||||
uint32_t dynamic_count=0;
|
||||
|
||||
{
|
||||
uint32_t count=0;
|
||||
|
||||
@@ -122,13 +119,6 @@ bool RenderCmdBuffer::BindDescriptorSets(Renderable *ri)
|
||||
{
|
||||
ds[count]=mp->GetVkDescriptorSet();
|
||||
++count;
|
||||
|
||||
if((DescriptorSetType)i==DescriptorSetType::PerObject)
|
||||
{
|
||||
dynamic_count=mp->GetBoundCount();
|
||||
|
||||
dynamic_offset=hgl_zero_new<uint32_t>(dynamic_count);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -136,9 +126,7 @@ bool RenderCmdBuffer::BindDescriptorSets(Renderable *ri)
|
||||
{
|
||||
pipeline_layout=ri->GetPipelineLayout();
|
||||
|
||||
vkCmdBindDescriptorSets(cmd_buf,VK_PIPELINE_BIND_POINT_GRAPHICS,pipeline_layout,0,count,ds,dynamic_count,dynamic_offset);
|
||||
|
||||
SAFE_CLEAR_ARRAY(dynamic_offset);
|
||||
vkCmdBindDescriptorSets(cmd_buf,VK_PIPELINE_BIND_POINT_GRAPHICS,pipeline_layout,0,count,ds,0,0);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user