summaryrefslogtreecommitdiff
path: root/tests/hlsl/simple/compute-numthreads.hlsl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hlsl/simple/compute-numthreads.hlsl')
-rw-r--r--tests/hlsl/simple/compute-numthreads.hlsl4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/hlsl/simple/compute-numthreads.hlsl b/tests/hlsl/simple/compute-numthreads.hlsl
index ba18a8d16..4f3291671 100644
--- a/tests/hlsl/simple/compute-numthreads.hlsl
+++ b/tests/hlsl/simple/compute-numthreads.hlsl
@@ -2,6 +2,10 @@
// Confirm that we properly pass along the `numthreads` attribute on an entry point.
+#ifndef __SLANG__
+#define b _SV01b
+#endif
+
RWStructuredBuffer<float> b;
[numthreads(32,1,1)]