File tree Expand file tree Collapse file tree
tools/clang/test/CodeGenSPIRV Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,13 +5,7 @@ RWStructuredBuffer<uint> Buf2;
55
66struct A
77{
8- RWStructuredBuffer <uint > Buffer ;
9-
10- void setBuffer (RWStructuredBuffer <uint > value)
11- {
12- Buffer = value;
13- }
14-
8+ RWStructuredBuffer <uint > Buffer ;
159 void Increment () { Buffer .IncrementCounter (); }
1610};
1711
@@ -21,17 +15,17 @@ struct C : B {};
2115[numthreads (64 , 1 , 1 )]
2216void main ()
2317{
24- B b;
25- b.Buffer = Buf1;
18+ B b;
19+ b.Buffer = Buf1;
2620
27- C c;
28- c.Buffer = Buf2;
21+ C c;
22+ c.Buffer = Buf2;
2923
30- // CHECK: [[ac:%[0-9]+]] = OpAccessChain %_ptr_Uniform_int %counter_var_Buf1 %uint_0
31- // CHECK: OpAtomicIAdd %int [[ac]] %uint_1 %uint_0 %int_1
32- b.Increment ();
24+ // CHECK: [[ac:%[0-9]+]] = OpAccessChain %_ptr_Uniform_int %counter_var_Buf1 %uint_0
25+ // CHECK: OpAtomicIAdd %int [[ac]] %uint_1 %uint_0 %int_1
26+ b.Increment ();
3327
34- // CHECK: [[ac:%[0-9]+]] = OpAccessChain %_ptr_Uniform_int %counter_var_Buf2 %uint_0
35- // CHECK: %18 = OpAtomicIAdd %int [[ac]] %uint_1 %uint_0 %int_1
36- c.Increment ();
28+ // CHECK: [[ac:%[0-9]+]] = OpAccessChain %_ptr_Uniform_int %counter_var_Buf2 %uint_0
29+ // CHECK: %18 = OpAtomicIAdd %int [[ac]] %uint_1 %uint_0 %int_1
30+ c.Increment ();
3731}
You can’t perform that action at this time.
0 commit comments