updated ShaderStage

This commit is contained in:
2023-03-18 21:07:21 +08:00
parent 9872f74160
commit 5f4dd09f92
3 changed files with 6 additions and 6 deletions

View File

@@ -10,7 +10,7 @@ VK_NAMESPACE_BEGIN
{ {
ObjectMap<OSString,ShaderResource> shader_resource_by_filename; ObjectMap<OSString,ShaderResource> shader_resource_by_filename;
const bool LoadShaderStageAttributes(ShaderAttributeArray &ss_list,io::ConstBufferReader &cbr) const bool LoadShaderStageAttributes(ShaderAttributeArray &sa_array,io::ConstBufferReader &cbr)
{ {
uint count; uint count;
@@ -19,9 +19,9 @@ VK_NAMESPACE_BEGIN
if(count<=0) if(count<=0)
return(false); return(false);
Init(ss_list,count); Init(&sa_array,count);
ShaderAttribute *ss=ss_list.items; ShaderAttribute *ss=sa_array.items;
for(uint i=0;i<count;i++) for(uint i=0;i<count;i++)
{ {

View File

@@ -33,7 +33,7 @@ bool ShaderDescriptorInfo::AddInput(ShaderAttribute *ss)
ss->location=stage_io.input.count; ss->location=stage_io.input.count;
Append(stage_io.input,ss); Append(&stage_io.input,ss);
return(true); return(true);
} }
@@ -45,7 +45,7 @@ bool ShaderDescriptorInfo::AddOutput(ShaderAttribute *ss)
ss->location=stage_io.output.count; ss->location=stage_io.output.count;
Append(stage_io.output,ss); Append(&stage_io.output,ss);
return(true); return(true);
} }