supported 0 DescriptorSet material.

This commit is contained in:
HuYingzhuo(hugo/hyzboy) 2022-06-20 21:39:04 +08:00
parent 3fbbdb8204
commit 4dff46c5c5
2 changed files with 26 additions and 19 deletions

View File

@ -8,6 +8,8 @@ PipelineLayoutData *GPUDevice::CreatePipelineLayoutData(const MaterialDescriptor
{ {
PipelineLayoutData *pld=hgl_zero_new<PipelineLayoutData>(); PipelineLayoutData *pld=hgl_zero_new<PipelineLayoutData>();
if(mds)
{
ENUM_CLASS_FOR(DescriptorSetsType,int,i) ENUM_CLASS_FOR(DescriptorSetsType,int,i)
{ {
const DescriptorSetLayoutCreateInfo *dslci=mds->GetBinding((DescriptorSetsType)i); const DescriptorSetLayoutCreateInfo *dslci=mds->GetBinding((DescriptorSetsType)i);
@ -35,6 +37,11 @@ PipelineLayoutData *GPUDevice::CreatePipelineLayoutData(const MaterialDescriptor
delete pld; delete pld;
return(nullptr); return(nullptr);
} }
}
else
{
//没有任何DescriptorSets的情况也是存在的
}
//VkPushConstantRange push_constant_range; //VkPushConstantRange push_constant_range;