splite RenderNode2D/3D,RenderList2D/3D

This commit is contained in:
2023-03-23 21:43:10 +08:00
parent f555c77a83
commit 939bbfeb1f
10 changed files with 497 additions and 37 deletions

View File

@@ -69,7 +69,7 @@ void LoadShaderDescriptor(io::ConstBufferReader &cbr,ShaderDescriptor *sd_list,c
cbr.Read(sd->binding);
cbr.Read(sd->stage_flag);
if(sd->set_type==DescriptorSetType::PerObject)
if(sd->set_type>=DescriptorSetType::PerObject)
{
if(sd->desc_type==VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER)sd->desc_type=VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC;else
if(sd->desc_type==VK_DESCRIPTOR_TYPE_STORAGE_BUFFER)sd->desc_type=VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC;