Files
95758658bb gpu: the off-screen instance reads wgpu's flag variables (#4084) (#4087)
* gpu: the off-screen instance reads wgpu's flag variables (#4084)

native_instance() applies with_env() to its flags and backend options, as the window's instance does, so
WGPU_ALLOW_UNDERLYING_NONCOMPLIANT_ADAPTER=1 lets GPU exports use Mesa's Dozen on WSL2, and
WGPU_VALIDATION, WGPU_DX12_COMPILER and the others apply to them. Its backends are unchanged: no GL on
Windows (#3418), and ExportRenderer::new still narrows the adapters by WGPU_BACKEND.

The playback bench example reads the same variables now, and WGPU_POWER_PREF when set.

* bench: keep the default adapter options, not WGPU_POWER_PREF

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Brandon Thomas <echelon@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 00:10:01 -05:00
..