diff options
Diffstat (limited to 'tests/wgsl')
| -rw-r--r-- | tests/wgsl/entry-point.slang | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/wgsl/entry-point.slang b/tests/wgsl/entry-point.slang new file mode 100644 index 000000000..2e807c181 --- /dev/null +++ b/tests/wgsl/entry-point.slang @@ -0,0 +1,10 @@ +//TEST:SIMPLE(filecheck=CHECK): -target wgsl-spirv-asm +//CHECK: OpEntryPoint + +RWStructuredBuffer<int> outputBuffer; + +[numthreads(1,1,1)] +void computeMain() +{ + outputBuffer[0] = 42; +} |
