OK???? 3rd_draw_triangle_use_RenderList run OK!.

This commit is contained in:
2023-09-05 20:19:53 +08:00
parent 6e8932fc2f
commit 8bb742f3f4
17 changed files with 356 additions and 145 deletions

View File

@@ -101,15 +101,14 @@ bool RenderCmdBuffer::BeginRenderPass()
return(true);
}
bool RenderCmdBuffer::BindDescriptorSets(Renderable *ri)
bool RenderCmdBuffer::BindDescriptorSets(Material *mtl)
{
if(!ri)return(false);
if(!mtl)return(false);
{
uint32_t count=0;
MaterialParameters *mp;
Material *mtl=ri->GetMaterial();
VkDescriptorSet ds[DESCRIPTOR_SET_TYPE_COUNT];
ENUM_CLASS_FOR(DescriptorSetType,int,i)
@@ -125,7 +124,7 @@ bool RenderCmdBuffer::BindDescriptorSets(Renderable *ri)
if(count>0)
{
pipeline_layout=ri->GetPipelineLayout();
pipeline_layout=mtl->GetPipelineLayout();
vkCmdBindDescriptorSets(cmd_buf,VK_PIPELINE_BIND_POINT_GRAPHICS,pipeline_layout,0,count,ds,0,0);
}