summaryrefslogtreecommitdiff
path: root/tools/gfx-unit-test/shader-cache-shader.slang
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gfx-unit-test/shader-cache-shader.slang')
-rw-r--r--tools/gfx-unit-test/shader-cache-shader.slang10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/gfx-unit-test/shader-cache-shader.slang b/tools/gfx-unit-test/shader-cache-shader.slang
new file mode 100644
index 000000000..c2dbe56f0
--- /dev/null
+++ b/tools/gfx-unit-test/shader-cache-shader.slang
@@ -0,0 +1,10 @@
+uniform RWStructuredBuffer<float> buffer;
+
+ [shader("compute")]
+ [numthreads(4, 1, 1)]
+ void computeMain(
+ uint3 sv_dispatchThreadID : SV_DispatchThreadID)
+ {
+ var input = buffer[sv_dispatchThreadID.x];
+ buffer[sv_dispatchThreadID.x] = input + 3.0f;
+ } \ No newline at end of file