Skip to content

Commit

Permalink
Add missing vertex data prefix to Vulkan ShaderGen (AcademySoftwareFo…
Browse files Browse the repository at this point in the history
…undation#1762)

@clach found that the VkShaderGenerator::getVertexDataPrefix() is returning the empty string when it seems like it should be returning vertexData.GetInstance() + "." similar to the glsl and metal shader gens do.
  • Loading branch information
klucknav authored Apr 4, 2024
1 parent e2ef60a commit b77576c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/MaterialXGenGlsl/VkShaderGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ void VkShaderGenerator::emitInputs(GenContext& context, ShaderStage& stage) cons
}
}

string VkShaderGenerator::getVertexDataPrefix(const VariableBlock&) const
string VkShaderGenerator::getVertexDataPrefix(const VariableBlock& vertexData) const
{
return EMPTY_STRING;
return vertexData.getInstance() + ".";
}

void VkShaderGenerator::emitOutputs(GenContext& context, ShaderStage& stage) const
Expand Down

0 comments on commit b77576c

Please sign in to comment.