blob: 55a6a8e9104f8dbdd7c8169ae19551ae806ca803 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK): -entry computeMain -stage compute -target metal
RWStructuredBuffer<uint> out;
[shader("compute")]
void computeMain(uint3 dispatchID : SV_DispatchThreadID)
{
// CHECK: Unsupported type for subgroup operations in Metal. Valid types include
// CHECK: Unsupported type for subgroup operations in Metal. Valid types include
// CHECK: Unsupported type for subgroup operations in Metal. Valid types include
out[0] = WaveRotate(true, 1);
out[1] = WaveRotate(uint8_t(dispatchID.x), 1);
out[2] = WaveRotate(uint64_t(dispatchID.x), 1);
}
|