The specifications of the compute shader used in Image Blur are outdated

I noticed that some of the compute shader samples in the document link below do not work.

https://playground.babylonjs.com/?webgpu#3URR7V#185

error: cannot initialize let of type 'vec2<i32>' with value of type 'vec2<u32>'
let dims : vec2<i32> = textureDimensions(inputTex, 0);
    ^^^^

The version that has been modified to work is shown below.
https://playground.babylonjs.com/?webgpu#3URR7V#273

I intended to make this change to match the official WebGPU sample, but I would like someone with knowledge to confirm whether there are any problems.

1 Like

Below is the PR for changing the URL.

3 Likes

Thanks for reporting and the fix!

2 Likes