T-055: The WebGPU build draws nothing in Safari's engine
Goal
Find out why Safari's engine rejects the WebGPU build, and either make it draw or decide, with evidence, that Safari stays on WebGL2 for now.
What is known (2026-12-02)
- In headless WebKit 27.2 with an iPhone profile, the WebGPU build starts, logs
Caught rendering error: Fragment module is invalid(bevy_render 0.20.1,error_handler.rs:139) at about 0.7 s, draws three frames and stops. After that Bevy logs "CommandQueue has un-applied commands being dropped" over and over. - The WebGL2 build runs at 60 fps in the same browser.
- The build from before T-049 fails the same way, and so does
?indirect=0. - Evan's phone showed exactly this: a black screen with only the "Log" link.
- The page now falls back to WebGL2 by itself and says why (
docs/VIEWER.md, "Safari's engine"). Reproduce the failure with:scripts/webkit-probe.sh "https://alife-kz9.pages.dev/?backend=webgpu"
Scope
- Find which shader module WebKit rejects and why. A good first step: have the probe wrap
GPUDevice.createShaderModuleand print each module's label andgetCompilationInfo()messages. - Decide between fixing our use (a feature we can turn off, a different setting), working around it, or leaving Safari on WebGL2 until Bevy or WebKit changes. Say which, and why.
- If WebGPU can be made to draw in WebKit, compare it with WebGL2 there for frame rate and start-up time, and choose the default for Safari from the measurement.
- The fallback and the report panel must keep working whatever is decided.
- Make the viewer's own loop notice a rendering error like this one, so the page can react at once instead of waiting for the watchdog.
Done when
- ☐ The rejected shader is named, with WebKit's own error message.
- ☐
scripts/webkit-probe.shon the live site reports drawing, on the default address and with the backend this ticket decides Safari should use. - ☐
docs/VIEWER.mdrecords the cause and the decision.
Notes
- Starts after T-014, which is changing the same files and holds the one Bevy build slot.
- It is a stand-in. Evan's phone is the real test, so ask for one "Copy report" from it
through
INBOX.mdwhen there is something new to try. - 2026-12-02: Evan's phone shows 60 frames per second after the automatic switch to WebGL2. So this ticket is no longer urgent for him. It still matters: the look work (T-015) will lean on features that are easier or faster in WebGPU, and every Safari user starts with a 5-second black screen until the switch.