diff --git a/source/slang/slang-ir-legalize-varying-params.h b/source/slang/slang-ir-legalize-varying-params.h index 58efa39a28..ff6f01a223 100644 --- a/source/slang/slang-ir-legalize-varying-params.h +++ b/source/slang/slang-ir-legalize-varying-params.h @@ -48,7 +48,7 @@ IRInst* emitCalcGroupIndex( M(DepthGreaterEqual, SV_DepthGreaterEqual) \ M(DepthLessEqual, SV_DepthLessEqual) \ M(DispatchThreadID, SV_DispatchThreadID) \ - M(DomainLsocation, SV_DomainLsocation) \ + M(DomainLocation, SV_DomainLocation) \ M(GroupID, SV_GroupID) \ M(GroupIndex, SV_GroupIndex) \ M(GroupThreadID, SV_GroupThreadID) \ diff --git a/source/slang/slang-ir-metal-legalize.cpp b/source/slang/slang-ir-metal-legalize.cpp index 5f42c21ced..00f70b00d1 100644 --- a/source/slang/slang-ir-metal-legalize.cpp +++ b/source/slang/slang-ir-metal-legalize.cpp @@ -494,7 +494,7 @@ namespace Slang result.permittedTypes.add(builder.getVectorType(builder.getBasicType(BaseType::UInt), builder.getIntValue(builder.getIntType(), 3))); break; } - case SystemValueSemanticName::DomainLsocation: + case SystemValueSemanticName::DomainLocation: { result.metalSystemValueName = toSlice("position_in_patch"); result.permittedTypes.add(builder.getVectorType(builder.getBasicType(BaseType::Float), builder.getIntValue(builder.getIntType(), 3)));