diff options
Diffstat (limited to 'tests/compute/simple.slang')
| -rw-r--r-- | tests/compute/simple.slang | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/compute/simple.slang b/tests/compute/simple.slang new file mode 100644 index 000000000..3f43c8cc7 --- /dev/null +++ b/tests/compute/simple.slang @@ -0,0 +1,11 @@ +//TEST(smoke,compute):COMPARE_COMPUTE: + +// This is a basic test for Slang compute shader. + +RWStructuredBuffer<float> outputBuffer; + +[numthreads(4, 1, 1)] +void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID) +{ + outputBuffer[dispatchThreadID.x] = float(dispatchThreadID.x); +}
\ No newline at end of file |
