From dcf5e2a815c0a43ec6a07cc74a8a30b6cd76fdf4 Mon Sep 17 00:00:00 2001 From: Jay Kwak <82421531+jkwak-work@users.noreply.github.com> Date: Wed, 28 Aug 2024 16:22:09 -0700 Subject: [PATCH] Fix typo SV_DispatchThreadIndex 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. --- 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(-) diff --git a/tests/ir/factorial.slang b/tests/ir/factorial.slang index 76653f055f..917668b692 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 44a0f36e95..6b2fbc7a2f 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 be05f6a8d6..d934959347 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"; }