chromium breaking
I just did a little debugging in electron. The webgpu breaking change is somewhere in chromium 97. Electron 17.0.0-alpha.3 and below work, 17a.4 to 18-nightly all break, as in completely blank white screen. Lower versions still work though, although the ocean shader has some glitchy rendering. see picture below.
I have a feeling the “invalid destination gpu texture format” is related to using integers in babylon’s glsl without the flat keyword , which causes the resulting wgsl shader to not include [interpolate(flat)]
ie:
struct Actual {
[[location(1)]] z: u32;
};
struct Expected {
[[location(1),interpolate(flat)]] z: u32;
};
I suspect either using flat or changing the glsl to floats (if possible) could fix the shader compiler error.
colorAttachments
I think they are added when using the [“OES_standard_derivatives”] for opengl
Edit. Originally was asking if configuring fragment target was required but it seems not. see evgeni post below.
ocean / webgpu
i tried to fix up an electron repo for you evgeni, but i couldn’t get the renderer to stop bugging out. I just realized the playground is doing it too, and i think it must be that the glslang wasm file is hard coded to latest preview, because babylon 5.00-alpha.40 used to work in chromium 96, but now it doesnt .
Renders like this in electron too, using babylon 5.0.0-alpha.63 and electron v14 through v17.0.0-alpha.3. Babylon 5.0.0-alpha.40 worked about a week ago showing the full ocean demo in electron, but no longer does, even when using a deterministic version of chromium.
Is there a way to configure babylon to use a local version of glslang.wasm?
regular chrome
Devtools wont even connect in chromium 97. Just blank everything. Only thing I changed was the electron version, which bumps chromium from 96 to 97.
PLOT TWIST. This is canary
lemons to lemonaide
although the ocean seems to have frozen over, maybe its just in time for a merry gpu compute santa adventure?!