diff options
| author | Jay Kwak <82421531+jkwak-work@users.noreply.github.com> | 2024-08-28 23:26:18 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-28 23:26:18 -0700 |
| commit | e9f52a694710d793c7032bbb6175a452618f1b23 (patch) | |
| tree | d63fb867c6e49a8f3be8e558f52a830de816d110 | |
| parent | 6e32976de513d4e039c5a2b492cb8ea78f43c321 (diff) | |
Fix typo SV_DispatchThreadIndex (#4962)
A correct semantic name is SV_DispatchThreadID with "ID" not "Index".
Those tests don't actually run and they haven't caused any problems
yet.
Co-authored-by: Yong He <yonghe@outlook.com>
| -rw-r--r-- | tests/ir/factorial.slang | 2 | ||||
| -rw-r--r-- | tests/ir/string-literal-hash-reflection.slang | 2 | ||||
| -rw-r--r-- | tests/ir/string-literal.slang | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/ir/factorial.slang b/tests/ir/factorial.slang index 76653f055..917668b69 100644 --- a/tests/ir/factorial.slang +++ b/tests/ir/factorial.slang @@ -26,7 +26,7 @@ int factorial(int n) [numthreads(1, 1, 1)] void main( - uint tid : SV_DispatchThreadIndex) + uint tid : SV_DispatchThreadID) { output[tid] = factorial(input[tid]); } diff --git a/tests/ir/string-literal-hash-reflection.slang b/tests/ir/string-literal-hash-reflection.slang index 44a0f36e9..6b2fbc7a2 100644 --- a/tests/ir/string-literal-hash-reflection.slang +++ b/tests/ir/string-literal-hash-reflection.slang @@ -10,7 +10,7 @@ RWStructuredBuffer<int> outputBuffer; [numthreads(4, 1, 1)] void computeMain( - uint tid : SV_DispatchThreadIndex) + uint tid : SV_DispatchThreadID) { int value = doSomethingElse() + getStringHash("Hello \t\n\0x083 World"); outputBuffer[tid] = value; diff --git a/tests/ir/string-literal.slang b/tests/ir/string-literal.slang index be05f6a8d..d93495934 100644 --- a/tests/ir/string-literal.slang +++ b/tests/ir/string-literal.slang @@ -3,7 +3,7 @@ // CHECK: global_hashed_string_literals("Hello \t\n\0x083 World") [numthreads(1, 1, 1)] void main( - uint tid : SV_DispatchThreadIndex) + uint tid : SV_DispatchThreadID) { "Hello \t\n\0x083 World"; } |
