blob: 3da23986026eab4c2bc980733f469f42cbb7a82c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
//TEST:COMPARE_HLSL: -profile cs_5_0 -target dxbc-assembly
// Check output for `[allow_uav_conditional]`
RWStructuredBuffer<uint> gBuffer : register(u0);
[numthreads(16,1,1)]
void main(
uint tid : SV_DispatchThreadID)
{
uint index = tid;
[allow_uav_condition]
while(gBuffer[index] != 0)
{
index = gBuffer[index];
gBuffer[index]--;
}
}
|