Open evgenykobz opened 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);
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?
Glad you responded! So, for the context:
17.6 (19618.3.11.11.5)
(basically, the latest one) with WebGPU
feature enabledGPUTexture
creation via generateMipmaps
function call: that texture is also the targetI've also tested generating mipmaps with a plain JS bilinear filter and it did work out just fine.
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?