fix(web): use compatibility renderer

Chromium can advertise WebGPU limits that its shader path does not reliably support. Keep web builds on the packed/texture pipelines.\n\nRefs #788
This commit is contained in:
Hakan Seven committed 2026-08-18 22:35:39 +03:00
1 parent 7c818d15e9
commit 97a6322e2a
2 files changed
+3 -7

No files matched your search

+2 -4
View File
@@ -560,14 +560,12 @@ impl Pipeline {
);
// ── Wire pipeline ──────────────────────────────────────────────────
// Select once from actual device limits. Any device whose compositor
// exposes the required storage limits uses the storage renderer; all
// other devices use the packed/texture compatibility renderer.
// Browser shader support can lag behind advertised WebGPU limits.
let device_caps = DeviceCapabilities::detect(device);
#[cfg(not(target_arch = "wasm32"))]
let force_compat_renderer = crate::cli::gui_config().compat_renderer;
#[cfg(target_arch = "wasm32")]
let force_compat_renderer = false;
let force_compat_renderer = true;
let wire_mode =
wire_gpu::WirePipelineMode::select(device_caps, force_compat_renderer);
let wire_const_bgl = wire_mode