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.

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.

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.


Thanks for reporting and the fix!