| |
| RWByteAddressBuffer buffer : register(u0); |
| static uint v = 0u; |
| int idx1() { |
| v = (v + 1u); |
| return int(1); |
| } |
| |
| int idx2() { |
| v = (v + 1u); |
| return int(2); |
| } |
| |
| int idx3() { |
| v = (v + 1u); |
| return int(3); |
| } |
| |
| int idx4() { |
| v = (v + 1u); |
| return int(4); |
| } |
| |
| int idx5() { |
| v = (v + 1u); |
| return int(0); |
| } |
| |
| int idx6() { |
| v = (v + 1u); |
| return int(2); |
| } |
| |
| void main() { |
| { |
| int v_1 = idx1(); |
| int v_2 = idx2(); |
| uint v_3 = (uint(v_1) * 64u); |
| uint v_4 = (uint(v_2) * 16u); |
| int v_5 = idx3(); |
| int v_6 = (asint(buffer.Load((((0u + v_3) + v_4) + (uint(v_5) * 4u)))) + int(1)); |
| uint v_7 = (((0u + v_3) + v_4) + (uint(v_5) * 4u)); |
| buffer.Store(v_7, asuint(v_6)); |
| while(true) { |
| if ((v < 10u)) { |
| } else { |
| break; |
| } |
| { |
| int v_8 = idx4(); |
| int v_9 = idx5(); |
| uint v_10 = (uint(v_8) * 64u); |
| uint v_11 = (uint(v_9) * 16u); |
| int v_12 = idx6(); |
| int v_13 = (asint(buffer.Load((((0u + v_10) + v_11) + (uint(v_12) * 4u)))) + int(1)); |
| uint v_14 = (((0u + v_10) + v_11) + (uint(v_12) * 4u)); |
| buffer.Store(v_14, asuint(v_13)); |
| } |
| continue; |
| } |
| } |
| } |
| |
| [numthreads(1, 1, 1)] |
| void unused_entry_point() { |
| } |
| |