*/
@compute @workgroup_size(8,8)
fn search(@builtin(global_invocation_id) global_id: vec3<u32>) {
+ if (atomicLoad(&work.found) != 0u) { return; }
main(global_id);
}
*/
@compute @workgroup_size(1)
fn validate(@builtin(global_invocation_id) global_id: vec3<u32>) {
+ if (atomicLoad(&work.found) != 0u) { return; }
main(global_id);
}
* performance, but the variable name still contains the original index digit.
*/
fn main(id: vec3<u32>) {
- if (atomicLoad(&work.found) != 0u) { return; }
-
let threshold: u32 = ubo.threshold;
/**