mirror of
https://github.com/storytold/texturecraft.git
synced 2026-11-30 18:14:00 +01:00
From review on #192: - WGPU_ADAPTER_NAME took the first adapter whose name matched. Several can match (one GPU on two backends, two GPUs of a vendor, an empty name), so rank them as the desktop selector does: hardware first, then WGPU_POWER_PREF, then native backends before OpenGL. - The limits test only checked a clone. It now asks wgpu's noop backend, reporting WebGL2 limits, for the device Headless::new requests. - The environment map was created as a render target, which needs float color buffers that GLES and WebGL2 may lack. It is only uploaded and sampled. - The no-GPU CLI test clears inherited WGPU_ADAPTER_NAME/WGPU_POWER_PREF and checks that --samples renders under the same backend.