From e9f52a694710d793c7032bbb6175a452618f1b23 Mon Sep 17 00:00:00 2001 From: Jay Kwak <82421531+jkwak-work@users.noreply.github.com> Date: Wed, 28 Aug 2024 23:26:18 -0700 Subject: 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 --- tests/ir/factorial.slang | 2 +- tests/ir/string-literal-hash-reflection.slang | 2 +- tests/ir/string-literal.slang | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') 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 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"; } -- cgit v1.2.3