Skip to content

Commit

Permalink
metal: fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
slime73 committed Jun 15, 2024
1 parent 2eb8198 commit 8e67fd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/graphics/metal/Shader.mm
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ static EShLanguage getGLSLangStage(ShaderStageType stage)
case SPIRType::Struct:
if (membertype.op == spv::OpTypeArray)
{
size_t arraystride = comp.type_struct_member_array_stride(type, uindex);
size_t arraystride = msl.type_struct_member_array_stride(type, uindex);
for (uint32 i = 0; i < membertype.array[0]; i++)
{
std::string structname = name + "[" + std::to_string(i) + "].";
Expand Down

0 comments on commit 8e67fd5

Please sign in to comment.