Files
texturecraft/apps/texturecraft-cli
JonRC cda9590138 Headless render on adapters without compute shaders, and the wgpu env vars
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
2026-11-02 23:55:08 -03:00
..