updated ShaderStage
This commit is contained in:
Submodule CMSceneGraph updated: 80202ff30e...f51a6a98d6
@@ -10,7 +10,7 @@ VK_NAMESPACE_BEGIN
|
||||
{
|
||||
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;
|
||||
|
||||
@@ -19,9 +19,9 @@ VK_NAMESPACE_BEGIN
|
||||
if(count<=0)
|
||||
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++)
|
||||
{
|
||||
|
@@ -33,7 +33,7 @@ bool ShaderDescriptorInfo::AddInput(ShaderAttribute *ss)
|
||||
|
||||
ss->location=stage_io.input.count;
|
||||
|
||||
Append(stage_io.input,ss);
|
||||
Append(&stage_io.input,ss);
|
||||
return(true);
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ bool ShaderDescriptorInfo::AddOutput(ShaderAttribute *ss)
|
||||
|
||||
ss->location=stage_io.output.count;
|
||||
|
||||
Append(stage_io.output,ss);
|
||||
Append(&stage_io.output,ss);
|
||||
return(true);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user