diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/bugs/gh-6380-atomic-in-struct.slang | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/bugs/gh-6380-atomic-in-struct.slang b/tests/bugs/gh-6380-atomic-in-struct.slang new file mode 100644 index 000000000..7eda02418 --- /dev/null +++ b/tests/bugs/gh-6380-atomic-in-struct.slang @@ -0,0 +1,15 @@ +//TEST:SIMPLE(filecheck=CHECK): -target spirv +//CHECK: OpEntryPoint + +struct Test { + Atomic<int> test; +} + +RWStructuredBuffer<Test> data; + +[shader("compute")] +[numthreads(1,1,1)] +public void main() { + Test t = Test(1); + data[0].test.increment(); +}
\ No newline at end of file |
