Documentation
¶
Overview ¶
Command webgpuwaylandprobe verifies that the default (WebGPU) painter creates and renders to a native Wayland surface (#608, a #542 follow-up).
The WebGPU backend's Wayland surface descriptor (SurfaceSourceWaylandSurface, backend_webgpu_x11wayland.go, gated on build.IsWayland) is compile-checked in CI but never runtime-exercised there — CI runs under Xvfb (X11). This probe forces the Wayland platform and draws a distinctive frame so a screenshot proves a frame reached the compositor.
Run on a native Wayland session (e.g. headless sway + lavapipe):
BELLUI_PLATFORM=wayland WGPU_BACKEND=vulkan go run ./hack/webgpuwaylandprobe
It prints build.IsWayland (whether bellui resolved to the Wayland backend) once the driver is up, enables wgpu info logging (adapter/backend), and quits after a delay so a script can grim the output.