JolifantoBambla / webgpu-spd

A port of AMD's Single Pass Downsampler for WebGPU
https://jolifantobambla.github.io/webgpu-spd/
MIT License
13 stars 0 forks source link

Does not work in Safari (WebGPU support enabled) #6

Open evgenykobz opened 2 weeks ago

evgenykobz commented 2 weeks ago

Storage textures, as it appears, are not supported well enough in Safari (this example, for instance, breaks silently too). Have you investigated why it breaks in Safari? Maybe there is some obscure unavailable feature flag and/or a known issue i am simply unaware of that you could provide me with?

evgenykobz commented 2 weeks ago

This is what loading a third mip level looks like if Safari (artifact changes on page reload)

let lod_level: f32 = 2.0;
return textureSampleLevel(_texture, _sampler, input.texcoord, lod_level);
Screenshot 2024-10-07 at 3 48 22 PM Screenshot 2024-10-07 at 3 49 07 PM
JolifantoBambla commented 2 weeks ago

Thanks for reporting! That's a bummer. No, I haven't tested it on Safari yet. I'll see if I can borrow a mac and test it there.

What Safari version did you use? Did you get any errors or warnings in the console? Do I understand it correctly that both images you posted are not what you expected them to be and that the artifacts look different every time you generate mips?

evgenykobz commented 2 weeks ago

Glad you responded! So, for the context:

I've also tested generating mipmaps with a plain JS bilinear filter and it did work out just fine.