On my M1 MBP, Safari 17.4.1, it straight up doesn't work. Can I Use does say Safari only support WebGPU on TP and behind a flag: https://caniuse.com/?search=webgpu
Perhaps a Safari TP bug? I'd appreciate some browser version info so I can dig deeper.
It’s behind a flag. Enable the Develop menu if you haven’t, go to Develop|Feature Flags and you’ll find the setting to enable WebGPU (which is listed as “testing”).