supported 0 DescriptorSet material.
This commit is contained in:
parent
3fbbdb8204
commit
4dff46c5c5
@ -8,6 +8,8 @@ PipelineLayoutData *GPUDevice::CreatePipelineLayoutData(const MaterialDescriptor
|
||||
{
|
||||
PipelineLayoutData *pld=hgl_zero_new<PipelineLayoutData>();
|
||||
|
||||
if(mds)
|
||||
{
|
||||
ENUM_CLASS_FOR(DescriptorSetsType,int,i)
|
||||
{
|
||||
const DescriptorSetLayoutCreateInfo *dslci=mds->GetBinding((DescriptorSetsType)i);
|
||||
@ -35,6 +37,11 @@ PipelineLayoutData *GPUDevice::CreatePipelineLayoutData(const MaterialDescriptor
|
||||
delete pld;
|
||||
return(nullptr);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
//没有任何DescriptorSets的情况也是存在的
|
||||
}
|
||||
|
||||
//VkPushConstantRange push_constant_range;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user