diff options
| author | Yong He <yonghe@outlook.com> | 2025-02-26 22:38:23 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-26 22:38:23 -0800 |
| commit | 60c5db5caba089bf879fc958f373137b3e12a2d8 (patch) | |
| tree | 696db2d9457d2453ef640c5f337ff3c7d078c50e /tests | |
| parent | 02706dfc5f0526f4f8ca337be16d7b00640ba168 (diff) | |
Fix regression when using Atomic<T> in struct. (#6472)
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 |
