diff options
Diffstat (limited to 'tests/cross-compile/cpp-execute-simple.slang')
| -rw-r--r-- | tests/cross-compile/cpp-execute-simple.slang | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/cross-compile/cpp-execute-simple.slang b/tests/cross-compile/cpp-execute-simple.slang new file mode 100644 index 000000000..74a3ec634 --- /dev/null +++ b/tests/cross-compile/cpp-execute-simple.slang @@ -0,0 +1,12 @@ +//TEST:CPU_EXECUTE: -profile cs_5_0 -entry computeMain -target sharedlib + +[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) +{ + uint tid = dispatchThreadID.x; + + outputBuffer[tid] = int(tid * tid); +}
\ No newline at end of file |
