added ShaderDescriptorInfo::AddStruct

This commit is contained in:
HuYingzhuo(hugo/hyzboy) 2023-05-22 14:29:16 +08:00
parent 641ba4431f
commit 410a386423
2 changed files with 6 additions and 0 deletions

View File

@ -59,6 +59,7 @@ public:
bool AddInput(ShaderAttribute *); bool AddInput(ShaderAttribute *);
bool AddOutput(ShaderAttribute *); bool AddOutput(ShaderAttribute *);
void AddStruct(const AnsiString &);
bool AddUBO(DescriptorSetType type,const UBODescriptor *sd); bool AddUBO(DescriptorSetType type,const UBODescriptor *sd);
bool AddSampler(DescriptorSetType type,const SamplerDescriptor *sd); bool AddSampler(DescriptorSetType type,const SamplerDescriptor *sd);

View File

@ -49,6 +49,11 @@ bool ShaderDescriptorInfo::AddOutput(ShaderAttribute *ss)
return(true); return(true);
} }
void ShaderDescriptorInfo::AddStruct(const AnsiString &name)
{
struct_list.AddUnique(name);
}
bool ShaderDescriptorInfo::AddUBO(DescriptorSetType type,const UBODescriptor *ubo) bool ShaderDescriptorInfo::AddUBO(DescriptorSetType type,const UBODescriptor *ubo)
{ {
if(!ubo) if(!ubo)