mirror of
https://github.com/storytold/craft-launcher.git
synced 2026-11-03 09:08:47 +00:00
wgpu 30 turns on InstanceFlags::VALIDATION_INDIRECT_CALL by default and compiles its indirect-validation compute shaders in request_device. On Intel Iris and Iris Pro Macs, Metal's compiler fails on them with an internal error, the device is lost and the launcher exits at startup. wgpu_options() on macOS now removes the flag when the build is x86_64, then applies with_env() so WGPU_VALIDATION_INDIRECT_CALL=1 turns it back on. The launcher issues no indirect draws or dispatches. Apple silicon, Windows and Linux keep wgpu's default. This follows PhotoCraft's fix in storytold/photocraft#3171 (apps/photocraft/src/gpu_startup.rs). Fixes #344