1 2 3 4 5 6 7 8 9 10 11 12 13 14 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(); }