From: Chris Duncan Date: Tue, 14 Jan 2025 20:43:58 +0000 (-0800) Subject: Remove unnecessary v[8-11] scalar assignments. X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=a3bebfcf8e994c02dcb8552d7f115f51f6a1dcac;p=nano-pow.git Remove unnecessary v[8-11] scalar assignments. --- diff --git a/src/shaders/compute.wgsl b/src/shaders/compute.wgsl index 0cc3621..653540e 100644 --- a/src/shaders/compute.wgsl +++ b/src/shaders/compute.wgsl @@ -131,8 +131,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_01 = v_01 + v_89 + select(vec2(0u), vec2(0u, 1u), v_01.x + v_89.x < v_01.x); v1 = v_01.y; - v8 = v_89.x; - v9 = v_89.y; + + // a = a + m[sigma[r][2*i+0]] o0 = v_01.x + m0; @@ -168,8 +168,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_89 ^ v_1617; v_89 = vec2((xor.x >> 24u) | (xor.y << 8u), (xor.y >> 24u) | (xor.x << 8u)); - v8 = v_89.x; - v9 = v_89.y; + + // a = a + b @@ -177,8 +177,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_01 = v_01 + v_89 + select(vec2(0u), vec2(0u, 1u), v_01.x + v_89.x < v_01.x); v1 = v_01.y; - v8 = v_89.x; - v9 = v_89.y; + + // a = a + m[sigma[r][2*i+1]] o0 = v_01.x + m2; @@ -217,8 +217,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_89 ^ v_1617; v_89 = vec2((xor.x << 1u) | (xor.y >> 31u), (xor.y << 1u) | (xor.x >> 31u)); - v8 = v_89.x; - v9 = v_89.y; + + @@ -236,8 +236,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_23 = v_23 + v_1011 + select(vec2(0u), vec2(0u, 1u), v_23.x + v_1011.x < v_23.x); v2 = v_23.x; v3 = v_23.y; - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + m[sigma[r][2*i+0]] o0 = v2 + m4; @@ -273,8 +273,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_1011 ^ v_1819; v_1011 = vec2((xor.x >> 24u) | (xor.y << 8u), (xor.y >> 24u) | (xor.x << 8u)); - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + b v_23.x = v2; @@ -284,8 +284,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_23 = v_23 + v_1011 + select(vec2(0u), vec2(0u, 1u), v_23.x + v_1011.x < v_23.x); v2 = v_23.x; v3 = v_23.y; - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + m[sigma[r][2*i+1]] o0 = v2 + m6; @@ -322,8 +322,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_1011 ^ v_1819; v_1011 = vec2((xor.x << 1u) | (xor.y >> 31u), (xor.y << 1u) | (xor.x >> 31u)); - v10 = v_1011.x; - v11 = v_1011.y; + + @@ -537,8 +537,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_01 = v_01 + v_1011 + select(vec2(0u), vec2(0u, 1u), v_01.x + v_1011.x < v_01.x); v1 = v_01.y; - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + m[sigma[r][2*i+0]] // skip since adding 0u does nothing @@ -570,8 +570,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_1011 ^ v_2021; v_1011 = vec2((xor.x >> 24u) | (xor.y << 8u), (xor.y >> 24u) | (xor.x << 8u)); - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + b @@ -579,8 +579,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_01 = v_01 + v_1011 + select(vec2(0u), vec2(0u, 1u), v_01.x + v_1011.x < v_01.x); v1 = v_01.y; - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + m[sigma[r][2*i+1]] // skip since adding 0u does nothing @@ -613,8 +613,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_1011 ^ v_2021; v_1011 = vec2((xor.x << 1u) | (xor.y >> 31u), (xor.y << 1u) | (xor.x >> 31u)); - v10 = v_1011.x; - v11 = v_1011.y; + + @@ -826,8 +826,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_67 = v_67 + v_89 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_89.x < v_67.x); v6 = v_67.x; v7 = v_67.y; - v8 = v_89.x; - v9 = v_89.y; + + // a = a + m[sigma[r][2*i+0]] // skip since adding 0u does nothing @@ -859,8 +859,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_89 ^ v_1819; v_89 = vec2((xor.x >> 24u) | (xor.y << 8u), (xor.y >> 24u) | (xor.x << 8u)); - v8 = v_89.x; - v9 = v_89.y; + + // a = a + b v_67.x = v6; @@ -870,8 +870,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_67 = v_67 + v_89 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_89.x < v_67.x); v6 = v_67.x; v7 = v_67.y; - v8 = v_89.x; - v9 = v_89.y; + + // a = a + m[sigma[r][2*i+1]] // skip since adding 0u does nothing @@ -904,8 +904,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_89 ^ v_1819; v_89 = vec2((xor.x << 1u) | (xor.y >> 31u), (xor.y << 1u) | (xor.x >> 31u)); - v8 = v_89.x; - v9 = v_89.y; + + @@ -925,8 +925,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_01 = v_01 + v_89 + select(vec2(0u), vec2(0u, 1u), v_01.x + v_89.x < v_01.x); v1 = v_01.y; - v8 = v_89.x; - v9 = v_89.y; + + // a = a + m[sigma[r][2*i+0]] // skip since adding 0u does nothing @@ -956,8 +956,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_89 ^ v_1617; v_89 = vec2((xor.x >> 24u) | (xor.y << 8u), (xor.y >> 24u) | (xor.x << 8u)); - v8 = v_89.x; - v9 = v_89.y; + + // a = a + b @@ -965,8 +965,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_01 = v_01 + v_89 + select(vec2(0u), vec2(0u, 1u), v_01.x + v_89.x < v_01.x); v1 = v_01.y; - v8 = v_89.x; - v9 = v_89.y; + + // a = a + m[sigma[r][2*i+1]] // skip since adding 0u does nothing @@ -999,8 +999,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_89 ^ v_1617; v_89 = vec2((xor.x << 1u) | (xor.y >> 31u), (xor.y << 1u) | (xor.x >> 31u)); - v8 = v_89.x; - v9 = v_89.y; + + @@ -1018,8 +1018,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_23 = v_23 + v_1011 + select(vec2(0u), vec2(0u, 1u), v_23.x + v_1011.x < v_23.x); v2 = v_23.x; v3 = v_23.y; - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + m[sigma[r][2*i+0]] o0 = v2 + m8; @@ -1055,8 +1055,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_1011 ^ v_1819; v_1011 = vec2((xor.x >> 24u) | (xor.y << 8u), (xor.y >> 24u) | (xor.x << 8u)); - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + b v_23.x = v2; @@ -1066,8 +1066,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_23 = v_23 + v_1011 + select(vec2(0u), vec2(0u, 1u), v_23.x + v_1011.x < v_23.x); v2 = v_23.x; v3 = v_23.y; - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + m[sigma[r][2*i+1]] // skip since adding 0u does nothing @@ -1100,8 +1100,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_1011 ^ v_1819; v_1011 = vec2((xor.x << 1u) | (xor.y >> 31u), (xor.y << 1u) | (xor.x >> 31u)); - v10 = v_1011.x; - v11 = v_1011.y; + + @@ -1311,8 +1311,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_01 = v_01 + v_1011 + select(vec2(0u), vec2(0u, 1u), v_01.x + v_1011.x < v_01.x); v1 = v_01.y; - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + m[sigma[r][2*i+0]] o0 = v_01.x + m2; @@ -1350,8 +1350,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_1011 ^ v_2021; v_1011 = vec2((xor.x >> 24u) | (xor.y << 8u), (xor.y >> 24u) | (xor.x << 8u)); - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + b @@ -1359,8 +1359,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_01 = v_01 + v_1011 + select(vec2(0u), vec2(0u, 1u), v_01.x + v_1011.x < v_01.x); v1 = v_01.y; - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + m[sigma[r][2*i+1]] // skip since adding 0u does nothing @@ -1393,8 +1393,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_1011 ^ v_2021; v_1011 = vec2((xor.x << 1u) | (xor.y >> 31u), (xor.y << 1u) | (xor.x >> 31u)); - v10 = v_1011.x; - v11 = v_1011.y; + + @@ -1614,8 +1614,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_67 = v_67 + v_89 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_89.x < v_67.x); v6 = v_67.x; v7 = v_67.y; - v8 = v_89.x; - v9 = v_89.y; + + // a = a + m[sigma[r][2*i+0]] // skip since adding 0u does nothing @@ -1647,8 +1647,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_89 ^ v_1819; v_89 = vec2((xor.x >> 24u) | (xor.y << 8u), (xor.y >> 24u) | (xor.x << 8u)); - v8 = v_89.x; - v9 = v_89.y; + + // a = a + b v_67.x = v6; @@ -1658,8 +1658,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_67 = v_67 + v_89 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_89.x < v_67.x); v6 = v_67.x; v7 = v_67.y; - v8 = v_89.x; - v9 = v_89.y; + + // a = a + m[sigma[r][2*i+1]] o0 = v6 + m6; @@ -1696,8 +1696,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_89 ^ v_1819; v_89 = vec2((xor.x << 1u) | (xor.y >> 31u), (xor.y << 1u) | (xor.x >> 31u)); - v8 = v_89.x; - v9 = v_89.y; + + @@ -1717,8 +1717,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_01 = v_01 + v_89 + select(vec2(0u), vec2(0u, 1u), v_01.x + v_89.x < v_01.x); v1 = v_01.y; - v8 = v_89.x; - v9 = v_89.y; + + // a = a + m[sigma[r][2*i+0]] // skip since adding 0u does nothing @@ -1748,8 +1748,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_89 ^ v_1617; v_89 = vec2((xor.x >> 24u) | (xor.y << 8u), (xor.y >> 24u) | (xor.x << 8u)); - v8 = v_89.x; - v9 = v_89.y; + + // a = a + b @@ -1757,8 +1757,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_01 = v_01 + v_89 + select(vec2(0u), vec2(0u, 1u), v_01.x + v_89.x < v_01.x); v1 = v_01.y; - v8 = v_89.x; - v9 = v_89.y; + + // a = a + m[sigma[r][2*i+1]] // skip since adding 0u does nothing @@ -1791,8 +1791,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_89 ^ v_1617; v_89 = vec2((xor.x << 1u) | (xor.y >> 31u), (xor.y << 1u) | (xor.x >> 31u)); - v8 = v_89.x; - v9 = v_89.y; + + @@ -1810,8 +1810,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_23 = v_23 + v_1011 + select(vec2(0u), vec2(0u, 1u), v_23.x + v_1011.x < v_23.x); v2 = v_23.x; v3 = v_23.y; - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + m[sigma[r][2*i+0]] // skip since adding 0u does nothing @@ -1843,8 +1843,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_1011 ^ v_1819; v_1011 = vec2((xor.x >> 24u) | (xor.y << 8u), (xor.y >> 24u) | (xor.x << 8u)); - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + b v_23.x = v2; @@ -1854,8 +1854,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_23 = v_23 + v_1011 + select(vec2(0u), vec2(0u, 1u), v_23.x + v_1011.x < v_23.x); v2 = v_23.x; v3 = v_23.y; - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + m[sigma[r][2*i+1]] o0 = v2 + m0; @@ -1892,8 +1892,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_1011 ^ v_1819; v_1011 = vec2((xor.x << 1u) | (xor.y >> 31u), (xor.y << 1u) | (xor.x >> 31u)); - v10 = v_1011.x; - v11 = v_1011.y; + + @@ -2107,8 +2107,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_01 = v_01 + v_1011 + select(vec2(0u), vec2(0u, 1u), v_01.x + v_1011.x < v_01.x); v1 = v_01.y; - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + m[sigma[r][2*i+0]] // skip since adding 0u does nothing @@ -2140,8 +2140,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_1011 ^ v_2021; v_1011 = vec2((xor.x >> 24u) | (xor.y << 8u), (xor.y >> 24u) | (xor.x << 8u)); - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + b @@ -2149,8 +2149,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_01 = v_01 + v_1011 + select(vec2(0u), vec2(0u, 1u), v_01.x + v_1011.x < v_01.x); v1 = v_01.y; - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + m[sigma[r][2*i+1]] // skip since adding 0u does nothing @@ -2183,8 +2183,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_1011 ^ v_2021; v_1011 = vec2((xor.x << 1u) | (xor.y >> 31u), (xor.y << 1u) | (xor.x >> 31u)); - v10 = v_1011.x; - v11 = v_1011.y; + + @@ -2404,8 +2404,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_67 = v_67 + v_89 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_89.x < v_67.x); v6 = v_67.x; v7 = v_67.y; - v8 = v_89.x; - v9 = v_89.y; + + // a = a + m[sigma[r][2*i+0]] // skip since adding 0u does nothing @@ -2437,8 +2437,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_89 ^ v_1819; v_89 = vec2((xor.x >> 24u) | (xor.y << 8u), (xor.y >> 24u) | (xor.x << 8u)); - v8 = v_89.x; - v9 = v_89.y; + + // a = a + b v_67.x = v6; @@ -2448,8 +2448,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_67 = v_67 + v_89 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_89.x < v_67.x); v6 = v_67.x; v7 = v_67.y; - v8 = v_89.x; - v9 = v_89.y; + + // a = a + m[sigma[r][2*i+1]] o0 = v6 + m8; @@ -2486,8 +2486,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_89 ^ v_1819; v_89 = vec2((xor.x << 1u) | (xor.y >> 31u), (xor.y << 1u) | (xor.x >> 31u)); - v8 = v_89.x; - v9 = v_89.y; + + @@ -2507,8 +2507,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_01 = v_01 + v_89 + select(vec2(0u), vec2(0u, 1u), v_01.x + v_89.x < v_01.x); v1 = v_01.y; - v8 = v_89.x; - v9 = v_89.y; + + // a = a + m[sigma[r][2*i+0]] // skip since adding 0u does nothing @@ -2538,8 +2538,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_89 ^ v_1617; v_89 = vec2((xor.x >> 24u) | (xor.y << 8u), (xor.y >> 24u) | (xor.x << 8u)); - v8 = v_89.x; - v9 = v_89.y; + + // a = a + b @@ -2547,8 +2547,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_01 = v_01 + v_89 + select(vec2(0u), vec2(0u, 1u), v_01.x + v_89.x < v_01.x); v1 = v_01.y; - v8 = v_89.x; - v9 = v_89.y; + + // a = a + m[sigma[r][2*i+1]] // skip since adding 0u does nothing @@ -2581,8 +2581,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_89 ^ v_1617; v_89 = vec2((xor.x << 1u) | (xor.y >> 31u), (xor.y << 1u) | (xor.x >> 31u)); - v8 = v_89.x; - v9 = v_89.y; + + @@ -2600,8 +2600,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_23 = v_23 + v_1011 + select(vec2(0u), vec2(0u, 1u), v_23.x + v_1011.x < v_23.x); v2 = v_23.x; v3 = v_23.y; - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + m[sigma[r][2*i+0]] o0 = v2 + m6; @@ -2637,8 +2637,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_1011 ^ v_1819; v_1011 = vec2((xor.x >> 24u) | (xor.y << 8u), (xor.y >> 24u) | (xor.x << 8u)); - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + b v_23.x = v2; @@ -2648,8 +2648,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_23 = v_23 + v_1011 + select(vec2(0u), vec2(0u, 1u), v_23.x + v_1011.x < v_23.x); v2 = v_23.x; v3 = v_23.y; - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + m[sigma[r][2*i+1]] o0 = v2 + m2; @@ -2686,8 +2686,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_1011 ^ v_1819; v_1011 = vec2((xor.x << 1u) | (xor.y >> 31u), (xor.y << 1u) | (xor.x >> 31u)); - v10 = v_1011.x; - v11 = v_1011.y; + + @@ -2897,8 +2897,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_01 = v_01 + v_1011 + select(vec2(0u), vec2(0u, 1u), v_01.x + v_1011.x < v_01.x); v1 = v_01.y; - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + m[sigma[r][2*i+0]] o0 = v_01.x + m4; @@ -2936,8 +2936,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_1011 ^ v_2021; v_1011 = vec2((xor.x >> 24u) | (xor.y << 8u), (xor.y >> 24u) | (xor.x << 8u)); - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + b @@ -2945,8 +2945,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_01 = v_01 + v_1011 + select(vec2(0u), vec2(0u, 1u), v_01.x + v_1011.x < v_01.x); v1 = v_01.y; - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + m[sigma[r][2*i+1]] // skip since adding 0u does nothing @@ -2979,8 +2979,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_1011 ^ v_2021; v_1011 = vec2((xor.x << 1u) | (xor.y >> 31u), (xor.y << 1u) | (xor.x >> 31u)); - v10 = v_1011.x; - v11 = v_1011.y; + + @@ -3200,8 +3200,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_67 = v_67 + v_89 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_89.x < v_67.x); v6 = v_67.x; v7 = v_67.y; - v8 = v_89.x; - v9 = v_89.y; + + // a = a + m[sigma[r][2*i+0]] // skip since adding 0u does nothing @@ -3233,8 +3233,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_89 ^ v_1819; v_89 = vec2((xor.x >> 24u) | (xor.y << 8u), (xor.y >> 24u) | (xor.x << 8u)); - v8 = v_89.x; - v9 = v_89.y; + + // a = a + b v_67.x = v6; @@ -3244,8 +3244,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_67 = v_67 + v_89 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_89.x < v_67.x); v6 = v_67.x; v7 = v_67.y; - v8 = v_89.x; - v9 = v_89.y; + + // a = a + m[sigma[r][2*i+1]] // skip since adding 0u does nothing @@ -3278,8 +3278,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_89 ^ v_1819; v_89 = vec2((xor.x << 1u) | (xor.y >> 31u), (xor.y << 1u) | (xor.x >> 31u)); - v8 = v_89.x; - v9 = v_89.y; + + @@ -3299,8 +3299,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_01 = v_01 + v_89 + select(vec2(0u), vec2(0u, 1u), v_01.x + v_89.x < v_01.x); v1 = v_01.y; - v8 = v_89.x; - v9 = v_89.y; + + // a = a + m[sigma[r][2*i+0]] // skip since adding 0u does nothing @@ -3330,8 +3330,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_89 ^ v_1617; v_89 = vec2((xor.x >> 24u) | (xor.y << 8u), (xor.y >> 24u) | (xor.x << 8u)); - v8 = v_89.x; - v9 = v_89.y; + + // a = a + b @@ -3339,8 +3339,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_01 = v_01 + v_89 + select(vec2(0u), vec2(0u, 1u), v_01.x + v_89.x < v_01.x); v1 = v_01.y; - v8 = v_89.x; - v9 = v_89.y; + + // a = a + m[sigma[r][2*i+1]] o0 = v_01.x + m0; @@ -3379,8 +3379,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_89 ^ v_1617; v_89 = vec2((xor.x << 1u) | (xor.y >> 31u), (xor.y << 1u) | (xor.x >> 31u)); - v8 = v_89.x; - v9 = v_89.y; + + @@ -3398,8 +3398,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_23 = v_23 + v_1011 + select(vec2(0u), vec2(0u, 1u), v_23.x + v_1011.x < v_23.x); v2 = v_23.x; v3 = v_23.y; - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + m[sigma[r][2*i+0]] // skip since adding 0u does nothing @@ -3431,8 +3431,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_1011 ^ v_1819; v_1011 = vec2((xor.x >> 24u) | (xor.y << 8u), (xor.y >> 24u) | (xor.x << 8u)); - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + b v_23.x = v2; @@ -3442,8 +3442,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_23 = v_23 + v_1011 + select(vec2(0u), vec2(0u, 1u), v_23.x + v_1011.x < v_23.x); v2 = v_23.x; v3 = v_23.y; - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + m[sigma[r][2*i+1]] // skip since adding 0u does nothing @@ -3476,8 +3476,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_1011 ^ v_1819; v_1011 = vec2((xor.x << 1u) | (xor.y >> 31u), (xor.y << 1u) | (xor.x >> 31u)); - v10 = v_1011.x; - v11 = v_1011.y; + + @@ -3695,8 +3695,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_01 = v_01 + v_1011 + select(vec2(0u), vec2(0u, 1u), v_01.x + v_1011.x < v_01.x); v1 = v_01.y; - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + m[sigma[r][2*i+0]] // skip since adding 0u does nothing @@ -3728,8 +3728,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_1011 ^ v_2021; v_1011 = vec2((xor.x >> 24u) | (xor.y << 8u), (xor.y >> 24u) | (xor.x << 8u)); - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + b @@ -3737,8 +3737,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_01 = v_01 + v_1011 + select(vec2(0u), vec2(0u, 1u), v_01.x + v_1011.x < v_01.x); v1 = v_01.y; - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + m[sigma[r][2*i+1]] o0 = v_01.x + m2; @@ -3777,8 +3777,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_1011 ^ v_2021; v_1011 = vec2((xor.x << 1u) | (xor.y >> 31u), (xor.y << 1u) | (xor.x >> 31u)); - v10 = v_1011.x; - v11 = v_1011.y; + + @@ -3990,8 +3990,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_67 = v_67 + v_89 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_89.x < v_67.x); v6 = v_67.x; v7 = v_67.y; - v8 = v_89.x; - v9 = v_89.y; + + // a = a + m[sigma[r][2*i+0]] o0 = v6 + m6; @@ -4027,8 +4027,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_89 ^ v_1819; v_89 = vec2((xor.x >> 24u) | (xor.y << 8u), (xor.y >> 24u) | (xor.x << 8u)); - v8 = v_89.x; - v9 = v_89.y; + + // a = a + b v_67.x = v6; @@ -4038,8 +4038,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_67 = v_67 + v_89 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_89.x < v_67.x); v6 = v_67.x; v7 = v_67.y; - v8 = v_89.x; - v9 = v_89.y; + + // a = a + m[sigma[r][2*i+1]] // skip since adding 0u does nothing @@ -4072,8 +4072,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_89 ^ v_1819; v_89 = vec2((xor.x << 1u) | (xor.y >> 31u), (xor.y << 1u) | (xor.x >> 31u)); - v8 = v_89.x; - v9 = v_89.y; + + @@ -4093,8 +4093,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_01 = v_01 + v_89 + select(vec2(0u), vec2(0u, 1u), v_01.x + v_89.x < v_01.x); v1 = v_01.y; - v8 = v_89.x; - v9 = v_89.y; + + // a = a + m[sigma[r][2*i+0]] o0 = v_01.x + m4; @@ -4130,8 +4130,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_89 ^ v_1617; v_89 = vec2((xor.x >> 24u) | (xor.y << 8u), (xor.y >> 24u) | (xor.x << 8u)); - v8 = v_89.x; - v9 = v_89.y; + + // a = a + b @@ -4139,8 +4139,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_01 = v_01 + v_89 + select(vec2(0u), vec2(0u, 1u), v_01.x + v_89.x < v_01.x); v1 = v_01.y; - v8 = v_89.x; - v9 = v_89.y; + + // a = a + m[sigma[r][2*i+1]] // skip since adding 0u does nothing @@ -4173,8 +4173,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_89 ^ v_1617; v_89 = vec2((xor.x << 1u) | (xor.y >> 31u), (xor.y << 1u) | (xor.x >> 31u)); - v8 = v_89.x; - v9 = v_89.y; + + @@ -4192,8 +4192,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_23 = v_23 + v_1011 + select(vec2(0u), vec2(0u, 1u), v_23.x + v_1011.x < v_23.x); v2 = v_23.x; v3 = v_23.y; - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + m[sigma[r][2*i+0]] // skip since adding 0u does nothing @@ -4225,8 +4225,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_1011 ^ v_1819; v_1011 = vec2((xor.x >> 24u) | (xor.y << 8u), (xor.y >> 24u) | (xor.x << 8u)); - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + b v_23.x = v2; @@ -4236,8 +4236,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_23 = v_23 + v_1011 + select(vec2(0u), vec2(0u, 1u), v_23.x + v_1011.x < v_23.x); v2 = v_23.x; v3 = v_23.y; - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + m[sigma[r][2*i+1]] // skip since adding 0u does nothing @@ -4270,8 +4270,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_1011 ^ v_1819; v_1011 = vec2((xor.x << 1u) | (xor.y >> 31u), (xor.y << 1u) | (xor.x >> 31u)); - v10 = v_1011.x; - v11 = v_1011.y; + + @@ -4489,8 +4489,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_01 = v_01 + v_1011 + select(vec2(0u), vec2(0u, 1u), v_01.x + v_1011.x < v_01.x); v1 = v_01.y; - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + m[sigma[r][2*i+0]] o0 = v_01.x + m8; @@ -4528,8 +4528,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_1011 ^ v_2021; v_1011 = vec2((xor.x >> 24u) | (xor.y << 8u), (xor.y >> 24u) | (xor.x << 8u)); - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + b @@ -4537,8 +4537,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_01 = v_01 + v_1011 + select(vec2(0u), vec2(0u, 1u), v_01.x + v_1011.x < v_01.x); v1 = v_01.y; - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + m[sigma[r][2*i+1]] // skip since adding 0u does nothing @@ -4571,8 +4571,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_1011 ^ v_2021; v_1011 = vec2((xor.x << 1u) | (xor.y >> 31u), (xor.y << 1u) | (xor.x >> 31u)); - v10 = v_1011.x; - v11 = v_1011.y; + + @@ -4784,8 +4784,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_67 = v_67 + v_89 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_89.x < v_67.x); v6 = v_67.x; v7 = v_67.y; - v8 = v_89.x; - v9 = v_89.y; + + // a = a + m[sigma[r][2*i+0]] o0 = v6 + m2; @@ -4821,8 +4821,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_89 ^ v_1819; v_89 = vec2((xor.x >> 24u) | (xor.y << 8u), (xor.y >> 24u) | (xor.x << 8u)); - v8 = v_89.x; - v9 = v_89.y; + + // a = a + b v_67.x = v6; @@ -4832,8 +4832,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_67 = v_67 + v_89 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_89.x < v_67.x); v6 = v_67.x; v7 = v_67.y; - v8 = v_89.x; - v9 = v_89.y; + + // a = a + m[sigma[r][2*i+1]] // skip since adding 0u does nothing @@ -4866,8 +4866,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_89 ^ v_1819; v_89 = vec2((xor.x << 1u) | (xor.y >> 31u), (xor.y << 1u) | (xor.x >> 31u)); - v8 = v_89.x; - v9 = v_89.y; + + @@ -4887,8 +4887,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_01 = v_01 + v_89 + select(vec2(0u), vec2(0u, 1u), v_01.x + v_89.x < v_01.x); v1 = v_01.y; - v8 = v_89.x; - v9 = v_89.y; + + // a = a + m[sigma[r][2*i+0]] // skip since adding 0u does nothing @@ -4918,8 +4918,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_89 ^ v_1617; v_89 = vec2((xor.x >> 24u) | (xor.y << 8u), (xor.y >> 24u) | (xor.x << 8u)); - v8 = v_89.x; - v9 = v_89.y; + + // a = a + b @@ -4927,8 +4927,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_01 = v_01 + v_89 + select(vec2(0u), vec2(0u, 1u), v_01.x + v_89.x < v_01.x); v1 = v_01.y; - v8 = v_89.x; - v9 = v_89.y; + + // a = a + m[sigma[r][2*i+1]] // skip since adding 0u does nothing @@ -4961,8 +4961,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_89 ^ v_1617; v_89 = vec2((xor.x << 1u) | (xor.y >> 31u), (xor.y << 1u) | (xor.x >> 31u)); - v8 = v_89.x; - v9 = v_89.y; + + @@ -4980,8 +4980,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_23 = v_23 + v_1011 + select(vec2(0u), vec2(0u, 1u), v_23.x + v_1011.x < v_23.x); v2 = v_23.x; v3 = v_23.y; - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + m[sigma[r][2*i+0]] o0 = v2 + m2; @@ -5017,8 +5017,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_1011 ^ v_1819; v_1011 = vec2((xor.x >> 24u) | (xor.y << 8u), (xor.y >> 24u) | (xor.x << 8u)); - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + b v_23.x = v2; @@ -5028,8 +5028,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_23 = v_23 + v_1011 + select(vec2(0u), vec2(0u, 1u), v_23.x + v_1011.x < v_23.x); v2 = v_23.x; v3 = v_23.y; - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + m[sigma[r][2*i+1]] // skip since adding 0u does nothing @@ -5062,8 +5062,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_1011 ^ v_1819; v_1011 = vec2((xor.x << 1u) | (xor.y >> 31u), (xor.y << 1u) | (xor.x >> 31u)); - v10 = v_1011.x; - v11 = v_1011.y; + + @@ -5277,8 +5277,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_01 = v_01 + v_1011 + select(vec2(0u), vec2(0u, 1u), v_01.x + v_1011.x < v_01.x); v1 = v_01.y; - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + m[sigma[r][2*i+0]] o0 = v_01.x + m0; @@ -5316,8 +5316,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_1011 ^ v_2021; v_1011 = vec2((xor.x >> 24u) | (xor.y << 8u), (xor.y >> 24u) | (xor.x << 8u)); - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + b @@ -5325,8 +5325,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_01 = v_01 + v_1011 + select(vec2(0u), vec2(0u, 1u), v_01.x + v_1011.x < v_01.x); v1 = v_01.y; - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + m[sigma[r][2*i+1]] // skip since adding 0u does nothing @@ -5359,8 +5359,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_1011 ^ v_2021; v_1011 = vec2((xor.x << 1u) | (xor.y >> 31u), (xor.y << 1u) | (xor.x >> 31u)); - v10 = v_1011.x; - v11 = v_1011.y; + + @@ -5580,8 +5580,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_67 = v_67 + v_89 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_89.x < v_67.x); v6 = v_67.x; v7 = v_67.y; - v8 = v_89.x; - v9 = v_89.y; + + // a = a + m[sigma[r][2*i+0]] // skip since adding 0u does nothing @@ -5613,8 +5613,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_89 ^ v_1819; v_89 = vec2((xor.x >> 24u) | (xor.y << 8u), (xor.y >> 24u) | (xor.x << 8u)); - v8 = v_89.x; - v9 = v_89.y; + + // a = a + b v_67.x = v6; @@ -5624,8 +5624,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_67 = v_67 + v_89 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_89.x < v_67.x); v6 = v_67.x; v7 = v_67.y; - v8 = v_89.x; - v9 = v_89.y; + + // a = a + m[sigma[r][2*i+1]] // skip since adding 0u does nothing @@ -5658,8 +5658,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_89 ^ v_1819; v_89 = vec2((xor.x << 1u) | (xor.y >> 31u), (xor.y << 1u) | (xor.x >> 31u)); - v8 = v_89.x; - v9 = v_89.y; + + @@ -5679,8 +5679,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_01 = v_01 + v_89 + select(vec2(0u), vec2(0u, 1u), v_01.x + v_89.x < v_01.x); v1 = v_01.y; - v8 = v_89.x; - v9 = v_89.y; + + // a = a + m[sigma[r][2*i+0]] // skip since adding 0u does nothing @@ -5710,8 +5710,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_89 ^ v_1617; v_89 = vec2((xor.x >> 24u) | (xor.y << 8u), (xor.y >> 24u) | (xor.x << 8u)); - v8 = v_89.x; - v9 = v_89.y; + + // a = a + b @@ -5719,8 +5719,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_01 = v_01 + v_89 + select(vec2(0u), vec2(0u, 1u), v_01.x + v_89.x < v_01.x); v1 = v_01.y; - v8 = v_89.x; - v9 = v_89.y; + + // a = a + m[sigma[r][2*i+1]] // skip since adding 0u does nothing @@ -5753,8 +5753,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_89 ^ v_1617; v_89 = vec2((xor.x << 1u) | (xor.y >> 31u), (xor.y << 1u) | (xor.x >> 31u)); - v8 = v_89.x; - v9 = v_89.y; + + @@ -5772,8 +5772,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_23 = v_23 + v_1011 + select(vec2(0u), vec2(0u, 1u), v_23.x + v_1011.x < v_23.x); v2 = v_23.x; v3 = v_23.y; - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + m[sigma[r][2*i+0]] // skip since adding 0u does nothing @@ -5805,8 +5805,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_1011 ^ v_1819; v_1011 = vec2((xor.x >> 24u) | (xor.y << 8u), (xor.y >> 24u) | (xor.x << 8u)); - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + b v_23.x = v2; @@ -5816,8 +5816,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_23 = v_23 + v_1011 + select(vec2(0u), vec2(0u, 1u), v_23.x + v_1011.x < v_23.x); v2 = v_23.x; v3 = v_23.y; - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + m[sigma[r][2*i+1]] // skip since adding 0u does nothing @@ -5850,8 +5850,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_1011 ^ v_1819; v_1011 = vec2((xor.x << 1u) | (xor.y >> 31u), (xor.y << 1u) | (xor.x >> 31u)); - v10 = v_1011.x; - v11 = v_1011.y; + + @@ -6069,8 +6069,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_01 = v_01 + v_1011 + select(vec2(0u), vec2(0u, 1u), v_01.x + v_1011.x < v_01.x); v1 = v_01.y; - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + m[sigma[r][2*i+0]] // skip since adding 0u does nothing @@ -6102,8 +6102,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_1011 ^ v_2021; v_1011 = vec2((xor.x >> 24u) | (xor.y << 8u), (xor.y >> 24u) | (xor.x << 8u)); - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + b @@ -6111,8 +6111,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_01 = v_01 + v_1011 + select(vec2(0u), vec2(0u, 1u), v_01.x + v_1011.x < v_01.x); v1 = v_01.y; - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + m[sigma[r][2*i+1]] o0 = v_01.x + m0; @@ -6151,8 +6151,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_1011 ^ v_2021; v_1011 = vec2((xor.x << 1u) | (xor.y >> 31u), (xor.y << 1u) | (xor.x >> 31u)); - v10 = v_1011.x; - v11 = v_1011.y; + + @@ -6368,8 +6368,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_67 = v_67 + v_89 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_89.x < v_67.x); v6 = v_67.x; v7 = v_67.y; - v8 = v_89.x; - v9 = v_89.y; + + // a = a + m[sigma[r][2*i+0]] o0 = v6 + m4; @@ -6405,8 +6405,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_89 ^ v_1819; v_89 = vec2((xor.x >> 24u) | (xor.y << 8u), (xor.y >> 24u) | (xor.x << 8u)); - v8 = v_89.x; - v9 = v_89.y; + + // a = a + b v_67.x = v6; @@ -6416,8 +6416,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_67 = v_67 + v_89 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_89.x < v_67.x); v6 = v_67.x; v7 = v_67.y; - v8 = v_89.x; - v9 = v_89.y; + + // a = a + m[sigma[r][2*i+1]] // skip since adding 0u does nothing @@ -6450,8 +6450,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_89 ^ v_1819; v_89 = vec2((xor.x << 1u) | (xor.y >> 31u), (xor.y << 1u) | (xor.x >> 31u)); - v8 = v_89.x; - v9 = v_89.y; + + @@ -6471,8 +6471,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_01 = v_01 + v_89 + select(vec2(0u), vec2(0u, 1u), v_01.x + v_89.x < v_01.x); v1 = v_01.y; - v8 = v_89.x; - v9 = v_89.y; + + // a = a + m[sigma[r][2*i+0]] // skip since adding 0u does nothing @@ -6502,8 +6502,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_89 ^ v_1617; v_89 = vec2((xor.x >> 24u) | (xor.y << 8u), (xor.y >> 24u) | (xor.x << 8u)); - v8 = v_89.x; - v9 = v_89.y; + + // a = a + b @@ -6511,8 +6511,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_01 = v_01 + v_89 + select(vec2(0u), vec2(0u, 1u), v_01.x + v_89.x < v_01.x); v1 = v_01.y; - v8 = v_89.x; - v9 = v_89.y; + + // a = a + m[sigma[r][2*i+1]] // skip since adding 0u does nothing @@ -6545,8 +6545,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_89 ^ v_1617; v_89 = vec2((xor.x << 1u) | (xor.y >> 31u), (xor.y << 1u) | (xor.x >> 31u)); - v8 = v_89.x; - v9 = v_89.y; + + @@ -6564,8 +6564,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_23 = v_23 + v_1011 + select(vec2(0u), vec2(0u, 1u), v_23.x + v_1011.x < v_23.x); v2 = v_23.x; v3 = v_23.y; - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + m[sigma[r][2*i+0]] // skip since adding 0u does nothing @@ -6597,8 +6597,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_1011 ^ v_1819; v_1011 = vec2((xor.x >> 24u) | (xor.y << 8u), (xor.y >> 24u) | (xor.x << 8u)); - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + b v_23.x = v2; @@ -6608,8 +6608,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_23 = v_23 + v_1011 + select(vec2(0u), vec2(0u, 1u), v_23.x + v_1011.x < v_23.x); v2 = v_23.x; v3 = v_23.y; - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + m[sigma[r][2*i+1]] // skip since adding 0u does nothing @@ -6642,8 +6642,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_1011 ^ v_1819; v_1011 = vec2((xor.x << 1u) | (xor.y >> 31u), (xor.y << 1u) | (xor.x >> 31u)); - v10 = v_1011.x; - v11 = v_1011.y; + + @@ -6861,8 +6861,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_01 = v_01 + v_1011 + select(vec2(0u), vec2(0u, 1u), v_01.x + v_1011.x < v_01.x); v1 = v_01.y; - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + m[sigma[r][2*i+0]] // skip since adding 0u does nothing @@ -6894,8 +6894,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_1011 ^ v_2021; v_1011 = vec2((xor.x >> 24u) | (xor.y << 8u), (xor.y >> 24u) | (xor.x << 8u)); - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + b @@ -6903,8 +6903,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_01 = v_01 + v_1011 + select(vec2(0u), vec2(0u, 1u), v_01.x + v_1011.x < v_01.x); v1 = v_01.y; - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + m[sigma[r][2*i+1]] o0 = v_01.x + m4; @@ -6943,8 +6943,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_1011 ^ v_2021; v_1011 = vec2((xor.x << 1u) | (xor.y >> 31u), (xor.y << 1u) | (xor.x >> 31u)); - v10 = v_1011.x; - v11 = v_1011.y; + + @@ -7164,8 +7164,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_67 = v_67 + v_89 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_89.x < v_67.x); v6 = v_67.x; v7 = v_67.y; - v8 = v_89.x; - v9 = v_89.y; + + // a = a + m[sigma[r][2*i+0]] // skip since adding 0u does nothing @@ -7197,8 +7197,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_89 ^ v_1819; v_89 = vec2((xor.x >> 24u) | (xor.y << 8u), (xor.y >> 24u) | (xor.x << 8u)); - v8 = v_89.x; - v9 = v_89.y; + + // a = a + b v_67.x = v6; @@ -7208,8 +7208,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_67 = v_67 + v_89 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_89.x < v_67.x); v6 = v_67.x; v7 = v_67.y; - v8 = v_89.x; - v9 = v_89.y; + + // a = a + m[sigma[r][2*i+1]] // skip since adding 0u does nothing @@ -7242,8 +7242,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_89 ^ v_1819; v_89 = vec2((xor.x << 1u) | (xor.y >> 31u), (xor.y << 1u) | (xor.x >> 31u)); - v8 = v_89.x; - v9 = v_89.y; + + @@ -7263,8 +7263,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_01 = v_01 + v_89 + select(vec2(0u), vec2(0u, 1u), v_01.x + v_89.x < v_01.x); v1 = v_01.y; - v8 = v_89.x; - v9 = v_89.y; + + // a = a + m[sigma[r][2*i+0]] // skip since adding 0u does nothing @@ -7294,8 +7294,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_89 ^ v_1617; v_89 = vec2((xor.x >> 24u) | (xor.y << 8u), (xor.y >> 24u) | (xor.x << 8u)); - v8 = v_89.x; - v9 = v_89.y; + + // a = a + b @@ -7303,8 +7303,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_01 = v_01 + v_89 + select(vec2(0u), vec2(0u, 1u), v_01.x + v_89.x < v_01.x); v1 = v_01.y; - v8 = v_89.x; - v9 = v_89.y; + + // a = a + m[sigma[r][2*i+1]] o0 = v_01.x + m4; @@ -7343,8 +7343,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_89 ^ v_1617; v_89 = vec2((xor.x << 1u) | (xor.y >> 31u), (xor.y << 1u) | (xor.x >> 31u)); - v8 = v_89.x; - v9 = v_89.y; + + @@ -7362,8 +7362,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_23 = v_23 + v_1011 + select(vec2(0u), vec2(0u, 1u), v_23.x + v_1011.x < v_23.x); v2 = v_23.x; v3 = v_23.y; - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + m[sigma[r][2*i+0]] // skip since adding 0u does nothing @@ -7395,8 +7395,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_1011 ^ v_1819; v_1011 = vec2((xor.x >> 24u) | (xor.y << 8u), (xor.y >> 24u) | (xor.x << 8u)); - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + b v_23.x = v2; @@ -7406,8 +7406,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_23 = v_23 + v_1011 + select(vec2(0u), vec2(0u, 1u), v_23.x + v_1011.x < v_23.x); v2 = v_23.x; v3 = v_23.y; - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + m[sigma[r][2*i+1]] o0 = v2 + m8; @@ -7444,8 +7444,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_1011 ^ v_1819; v_1011 = vec2((xor.x << 1u) | (xor.y >> 31u), (xor.y << 1u) | (xor.x >> 31u)); - v10 = v_1011.x; - v11 = v_1011.y; + + @@ -7666,8 +7666,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_01 = v_01 + v_1011 + select(vec2(0u), vec2(0u, 1u), v_01.x + v_1011.x < v_01.x); v1 = v_01.y; - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + m[sigma[r][2*i+0]] // skip since adding 0u does nothing @@ -7699,8 +7699,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_1011 ^ v_2021; v_1011 = vec2((xor.x >> 24u) | (xor.y << 8u), (xor.y >> 24u) | (xor.x << 8u)); - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + b @@ -7708,8 +7708,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_01 = v_01 + v_1011 + select(vec2(0u), vec2(0u, 1u), v_01.x + v_1011.x < v_01.x); v1 = v_01.y; - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + m[sigma[r][2*i+1]] // skip since adding 0u does nothing @@ -7742,8 +7742,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_1011 ^ v_2021; v_1011 = vec2((xor.x << 1u) | (xor.y >> 31u), (xor.y << 1u) | (xor.x >> 31u)); - v10 = v_1011.x; - v11 = v_1011.y; + + @@ -7959,8 +7959,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_67 = v_67 + v_89 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_89.x < v_67.x); v6 = v_67.x; v7 = v_67.y; - v8 = v_89.x; - v9 = v_89.y; + + // a = a + m[sigma[r][2*i+0]] // skip since adding 0u does nothing @@ -7992,8 +7992,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_89 ^ v_1819; v_89 = vec2((xor.x >> 24u) | (xor.y << 8u), (xor.y >> 24u) | (xor.x << 8u)); - v8 = v_89.x; - v9 = v_89.y; + + // a = a + b v_67.x = v6; @@ -8003,8 +8003,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_67 = v_67 + v_89 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_89.x < v_67.x); v6 = v_67.x; v7 = v_67.y; - v8 = v_89.x; - v9 = v_89.y; + + // a = a + m[sigma[r][2*i+1]] o0 = v6 + m0; @@ -8041,8 +8041,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_89 ^ v_1819; v_89 = vec2((xor.x << 1u) | (xor.y >> 31u), (xor.y << 1u) | (xor.x >> 31u)); - v8 = v_89.x; - v9 = v_89.y; + + @@ -8062,8 +8062,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_01 = v_01 + v_89 + select(vec2(0u), vec2(0u, 1u), v_01.x + v_89.x < v_01.x); v1 = v_01.y; - v8 = v_89.x; - v9 = v_89.y; + + // a = a + m[sigma[r][2*i+0]] o0 = v_01.x + m0; @@ -8099,8 +8099,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_89 ^ v_1617; v_89 = vec2((xor.x >> 24u) | (xor.y << 8u), (xor.y >> 24u) | (xor.x << 8u)); - v8 = v_89.x; - v9 = v_89.y; + + // a = a + b @@ -8108,8 +8108,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_01 = v_01 + v_89 + select(vec2(0u), vec2(0u, 1u), v_01.x + v_89.x < v_01.x); v1 = v_01.y; - v8 = v_89.x; - v9 = v_89.y; + + // a = a + m[sigma[r][2*i+1]] o0 = v_01.x + m2; @@ -8148,8 +8148,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_89 ^ v_1617; v_89 = vec2((xor.x << 1u) | (xor.y >> 31u), (xor.y << 1u) | (xor.x >> 31u)); - v8 = v_89.x; - v9 = v_89.y; + + @@ -8167,8 +8167,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_23 = v_23 + v_1011 + select(vec2(0u), vec2(0u, 1u), v_23.x + v_1011.x < v_23.x); v2 = v_23.x; v3 = v_23.y; - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + m[sigma[r][2*i+0]] o0 = v2 + m4; @@ -8204,8 +8204,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_1011 ^ v_1819; v_1011 = vec2((xor.x >> 24u) | (xor.y << 8u), (xor.y >> 24u) | (xor.x << 8u)); - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + b v_23.x = v2; @@ -8215,8 +8215,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_23 = v_23 + v_1011 + select(vec2(0u), vec2(0u, 1u), v_23.x + v_1011.x < v_23.x); v2 = v_23.x; v3 = v_23.y; - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + m[sigma[r][2*i+1]] o0 = v2 + m6; @@ -8253,8 +8253,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_1011 ^ v_1819; v_1011 = vec2((xor.x << 1u) | (xor.y >> 31u), (xor.y << 1u) | (xor.x >> 31u)); - v10 = v_1011.x; - v11 = v_1011.y; + + @@ -8468,8 +8468,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_01 = v_01 + v_1011 + select(vec2(0u), vec2(0u, 1u), v_01.x + v_1011.x < v_01.x); v1 = v_01.y; - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + m[sigma[r][2*i+0]] // skip since adding 0u does nothing @@ -8501,8 +8501,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_1011 ^ v_2021; v_1011 = vec2((xor.x >> 24u) | (xor.y << 8u), (xor.y >> 24u) | (xor.x << 8u)); - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + b @@ -8510,8 +8510,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_01 = v_01 + v_1011 + select(vec2(0u), vec2(0u, 1u), v_01.x + v_1011.x < v_01.x); v1 = v_01.y; - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + m[sigma[r][2*i+1]] // skip since adding 0u does nothing @@ -8544,8 +8544,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_1011 ^ v_2021; v_1011 = vec2((xor.x << 1u) | (xor.y >> 31u), (xor.y << 1u) | (xor.x >> 31u)); - v10 = v_1011.x; - v11 = v_1011.y; + + @@ -8757,8 +8757,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_67 = v_67 + v_89 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_89.x < v_67.x); v6 = v_67.x; v7 = v_67.y; - v8 = v_89.x; - v9 = v_89.y; + + // a = a + m[sigma[r][2*i+0]] // skip since adding 0u does nothing @@ -8790,8 +8790,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_89 ^ v_1819; v_89 = vec2((xor.x >> 24u) | (xor.y << 8u), (xor.y >> 24u) | (xor.x << 8u)); - v8 = v_89.x; - v9 = v_89.y; + + // a = a + b v_67.x = v6; @@ -8801,8 +8801,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_67 = v_67 + v_89 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_89.x < v_67.x); v6 = v_67.x; v7 = v_67.y; - v8 = v_89.x; - v9 = v_89.y; + + // a = a + m[sigma[r][2*i+1]] // skip since adding 0u does nothing @@ -8835,8 +8835,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_89 ^ v_1819; v_89 = vec2((xor.x << 1u) | (xor.y >> 31u), (xor.y << 1u) | (xor.x >> 31u)); - v8 = v_89.x; - v9 = v_89.y; + + @@ -8856,8 +8856,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_01 = v_01 + v_89 + select(vec2(0u), vec2(0u, 1u), v_01.x + v_89.x < v_01.x); v1 = v_01.y; - v8 = v_89.x; - v9 = v_89.y; + + // a = a + m[sigma[r][2*i+0]] // skip since adding 0u does nothing @@ -8887,8 +8887,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_89 ^ v_1617; v_89 = vec2((xor.x >> 24u) | (xor.y << 8u), (xor.y >> 24u) | (xor.x << 8u)); - v8 = v_89.x; - v9 = v_89.y; + + // a = a + b @@ -8896,8 +8896,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_01 = v_01 + v_89 + select(vec2(0u), vec2(0u, 1u), v_01.x + v_89.x < v_01.x); v1 = v_01.y; - v8 = v_89.x; - v9 = v_89.y; + + // a = a + m[sigma[r][2*i+1]] // skip since adding 0u does nothing @@ -8930,8 +8930,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_89 ^ v_1617; v_89 = vec2((xor.x << 1u) | (xor.y >> 31u), (xor.y << 1u) | (xor.x >> 31u)); - v8 = v_89.x; - v9 = v_89.y; + + @@ -8949,8 +8949,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_23 = v_23 + v_1011 + select(vec2(0u), vec2(0u, 1u), v_23.x + v_1011.x < v_23.x); v2 = v_23.x; v3 = v_23.y; - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + m[sigma[r][2*i+0]] o0 = v2 + m8; @@ -8986,8 +8986,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_1011 ^ v_1819; v_1011 = vec2((xor.x >> 24u) | (xor.y << 8u), (xor.y >> 24u) | (xor.x << 8u)); - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + b v_23.x = v2; @@ -8997,8 +8997,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_23 = v_23 + v_1011 + select(vec2(0u), vec2(0u, 1u), v_23.x + v_1011.x < v_23.x); v2 = v_23.x; v3 = v_23.y; - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + m[sigma[r][2*i+1]] // skip since adding 0u does nothing @@ -9031,8 +9031,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_1011 ^ v_1819; v_1011 = vec2((xor.x << 1u) | (xor.y >> 31u), (xor.y << 1u) | (xor.x >> 31u)); - v10 = v_1011.x; - v11 = v_1011.y; + + @@ -9242,8 +9242,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_01 = v_01 + v_1011 + select(vec2(0u), vec2(0u, 1u), v_01.x + v_1011.x < v_01.x); v1 = v_01.y; - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + m[sigma[r][2*i+0]] o0 = v_01.x + m2; @@ -9281,8 +9281,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_1011 ^ v_2021; v_1011 = vec2((xor.x >> 24u) | (xor.y << 8u), (xor.y >> 24u) | (xor.x << 8u)); - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + b @@ -9290,8 +9290,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_01 = v_01 + v_1011 + select(vec2(0u), vec2(0u, 1u), v_01.x + v_1011.x < v_01.x); v1 = v_01.y; - v10 = v_1011.x; - v11 = v_1011.y; + + // a = a + m[sigma[r][2*i+1]] // skip since adding 0u does nothing @@ -9324,8 +9324,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_1011 ^ v_2021; v_1011 = vec2((xor.x << 1u) | (xor.y >> 31u), (xor.y << 1u) | (xor.x >> 31u)); - v10 = v_1011.x; - v11 = v_1011.y; + + @@ -9545,8 +9545,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_67 = v_67 + v_89 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_89.x < v_67.x); v6 = v_67.x; v7 = v_67.y; - v8 = v_89.x; - v9 = v_89.y; + + // a = a + m[sigma[r][2*i+0]] // skip since adding 0u does nothing @@ -9578,8 +9578,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_89 ^ v_1819; v_89 = vec2((xor.x >> 24u) | (xor.y << 8u), (xor.y >> 24u) | (xor.x << 8u)); - v8 = v_89.x; - v9 = v_89.y; + + // a = a + b v_67.x = v6; @@ -9589,8 +9589,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { v_67 = v_67 + v_89 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_89.x < v_67.x); v6 = v_67.x; v7 = v_67.y; - v8 = v_89.x; - v9 = v_89.y; + + // a = a + m[sigma[r][2*i+1]] o0 = v6 + m6; @@ -9627,8 +9627,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { xor = v_89 ^ v_1819; v_89 = vec2((xor.x << 1u) | (xor.y >> 31u), (xor.y << 1u) | (xor.x >> 31u)); - v8 = v_89.x; - v9 = v_89.y; + +