supported 0 DescriptorSet material.
This commit is contained in:
parent
3fbbdb8204
commit
4dff46c5c5
@ -54,7 +54,7 @@ public:
|
||||
const uint GetRefCount()const{return ref_count;}
|
||||
|
||||
void SetBoundingBox(const AABB &aabb){BoundingBox=aabb;}
|
||||
const AABB &GetBoundingBox()const {return BoundingBox;}
|
||||
const AABB & GetBoundingBox()const {return BoundingBox;}
|
||||
|
||||
bool Set(const AnsiString &name,VBO *vb,VkDeviceSize offset=0);
|
||||
|
||||
|
@ -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