From: Chris Duncan Date: Thu, 16 Jan 2025 05:20:24 +0000 (-0800) Subject: Swizzle on other bit shift not working but leaving here commented to work on later. X-Git-Tag: v2.0.0~55 X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=7a58afad7a7266a833052dac6da5bb37c9d1e8bb;p=nano-pow.git Swizzle on other bit shift not working but leaving here commented to work on later. --- diff --git a/src/shaders/compute.wgsl b/src/shaders/compute.wgsl index a9f5278..8cdf855 100644 --- a/src/shaders/compute.wgsl +++ b/src/shaders/compute.wgsl @@ -127,6 +127,7 @@ fn main(id: vec3) { // b = rotr64(b ^ c, 24) xor = v4 ^ v8; v4 = vec2((xor.x >> 24u) | (xor.y << 8u), (xor.y >> 24u) | (xor.x << 8u)); + // v4 = vec2((xor.yx >> vec2(24u, 24u)) | (xor.yx << vec2(8u, 8u))); // a = a + b v0 = v0 + v4 + vec2(0u, u32(v0.x + v4.x < v0.x));