Skip to content

Commit

Permalink
Fix typo SV_DomainLsocation (shader-slang#4960)
Browse files Browse the repository at this point in the history
* Fix typo SV_DomainLsocation

* Fix CI failures

---------

Co-authored-by: Yong He <[email protected]>
  • Loading branch information
jkwak-work and csyonghe authored Aug 29, 2024
1 parent aaf3f5e commit 87d3d4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/slang/slang-ir-legalize-varying-params.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
Expand Down
2 changes: 1 addition & 1 deletion source/slang/slang-ir-metal-legalize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
Expand Down

0 comments on commit 87d3d4f

Please sign in to comment.