summaryrefslogtreecommitdiff
path: root/tests/cross-compile/cpp-execute-simple.slang
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cross-compile/cpp-execute-simple.slang')
-rw-r--r--tests/cross-compile/cpp-execute-simple.slang8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/cross-compile/cpp-execute-simple.slang b/tests/cross-compile/cpp-execute-simple.slang
index 74a3ec634..72c77b653 100644
--- a/tests/cross-compile/cpp-execute-simple.slang
+++ b/tests/cross-compile/cpp-execute-simple.slang
@@ -1,10 +1,12 @@
//TEST:CPU_EXECUTE: -profile cs_5_0 -entry computeMain -target sharedlib
+//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):dxbinding(0),glbinding(0),out
+RWStructuredBuffer<int> outputBuffer;
+
+
[numthreads(4, 1, 1)]
void computeMain(
- uint3 dispatchThreadID : SV_DispatchThreadID,
-//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):dxbinding(0),glbinding(0),out
- RWStructuredBuffer<int> outputBuffer)
+ uint3 dispatchThreadID : SV_DispatchThreadID)
{
uint tid = dispatchThreadID.x;