diff --git a/webgpu-compute-demo/script.js b/webgpu-compute-demo/script.js index e7a3b0a2..92dd752a 100644 --- a/webgpu-compute-demo/script.js +++ b/webgpu-compute-demo/script.js @@ -15,7 +15,7 @@ fn main( local_id : vec3u, ) { // Avoid accessing the buffer out of bounds - if (global_id.x >= ${BUFFER_SIZE}) { + if (global_id.x >= ${BUFFER_SIZE}u) { return; } @@ -129,4 +129,4 @@ async function init() { console.log(new Float32Array(data)); } -init(); \ No newline at end of file +init();