blob: 86e4265be40c64e297f93df9d78ef4fe4f31ecab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
//TEST:SIMPLE(filecheck=CHECK): -target metal
//TEST:SIMPLE(filecheck=CHECK-ASM): -target metallib
// CHECK: threadgroup_barrier
// CHECK-ASM: define void @computeMain
RWStructuredBuffer<float> outputBuffer;
[numthreads(1,1,1)]
void computeMain()
{
outputBuffer[0] = 1;
GroupMemoryBarrierWithGroupSync();
outputBuffer[1] = 2;
AllMemoryBarrierWithGroupSync();
outputBuffer[2] = 3;
}
|