From 87d3d4f73a2b3af3ec00f221350864602d12321d Mon Sep 17 00:00:00 2001 From: Jay Kwak <82421531+jkwak-work@users.noreply.github.com> Date: Thu, 29 Aug 2024 10:25:53 -0700 Subject: Fix typo SV_DomainLsocation (#4960) * Fix typo SV_DomainLsocation * Fix CI failures --------- Co-authored-by: Yong He --- source/slang/slang-ir-legalize-varying-params.h | 2 +- source/slang/slang-ir-metal-legalize.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'source') diff --git a/source/slang/slang-ir-legalize-varying-params.h b/source/slang/slang-ir-legalize-varying-params.h index 58efa39a2..ff6f01a22 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 5f42c21ce..00f70b00d 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))); -- cgit v1.2.3