mirror of
https://github.com/storytold/texturecraft.git
synced 2026-11-30 10:03:56 +01:00
The headless device asked for Limits::default(), which needs compute shaders, so the viewport render failed on WSL2's GL driver and other WebGL2-class adapters. It now asks for the adapter's own limits: the viewport draws with fragment passes only, and the GPU path tracer checks the device's limits itself. headless::adapter() builds the instance from wgpu's environment and honours WGPU_ADAPTER_NAME and WGPU_POWER_PREF (default high) like the desktop app. GPU baking uses it too. With no adapter at all, the render error says that path tracing needs no GPU. Fixes #190