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