From: Chris Duncan Date: Tue, 14 Jan 2025 20:05:02 +0000 (-0800) Subject: Replace remaining scalar of threshold comaparison with vector variable. X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=11f383adfeae2613cbdad33d5d02b97afa8d248c;p=nano-pow.git Replace remaining scalar of threshold comaparison with vector variable. --- diff --git a/src/shaders/compute.wgsl b/src/shaders/compute.wgsl index afa452c..5ff47db 100644 --- a/src/shaders/compute.wgsl +++ b/src/shaders/compute.wgsl @@ -9641,7 +9641,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 ^ v_01.y ^ v17) > threshold && atomicLoad(&work.found) == 0u) { + if ((BLAKE2B_IV32_1 ^ v_01.y ^ v_1617.y) > threshold && atomicLoad(&work.found) == 0u) { atomicStore(&work.found, 1u); work.nonce.x = m0; work.nonce.y = m1;