From: Chris Duncan Date: Tue, 14 Jan 2025 17:42:54 +0000 (-0800) Subject: Replace scalar in threshold check with vector component. X-Git-Tag: v2.0.0~126 X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=0e43a8d9c85930c00fc855db86d1983f565d0a97;p=nano-pow.git Replace scalar in threshold check with vector component. --- diff --git a/src/shaders/compute.wgsl b/src/shaders/compute.wgsl index dddb354..48cfd75 100644 --- a/src/shaders/compute.wgsl +++ b/src/shaders/compute.wgsl @@ -8912,7 +8912,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { /** * Set nonce if it passes the threshold and no other thread has set it */ - if ((BLAKE2B_IV32_1 ^ v1 ^ v17) > threshold && atomicLoad(&work.found) == 0u) { + if ((BLAKE2B_IV32_1 ^ v_01.y ^ v17) > threshold && atomicLoad(&work.found) == 0u) { atomicStore(&work.found, 1u); work.nonce.x = m0; work.nonce.y = m1;