blob: 8be1d6f6b6ec81945dfeea2d5dfd84aa91901069 [file] [log] [blame]
RWByteAddressBuffer output : register(u0);
[numthreads(1, 1, 1)]
void foo() {
int i = 0;
while (true) {
int x = asint(output.Load((4u * uint(i))));
{
int x_1 = asint(output.Load((4u * uint(x))));
i = (i + x_1);
if ((i > 10)) { break; }
}
}
output.Store(0u, asuint(i));
return;
}