mach: default to high-power adapters; let user choose
https://matrix.to/#/!bIJeTLtOHucXQpqIcH:matrix.org/$u4RlZPTkXo8VrObrMSY6rSppArpToyK6ZRIO-F8PBvk?via=matrix.org&via=mozilla.org&via=pythons.space
it would be good to blacklist known bad backend implementations.
in linux vulkan drivers for old GPUs exist as software-only mesa's llvmpipe implementation, while at the same time fully accelerated OpenGL implementation might be available.
+1 for this issue. For a project I'm working on, I'm experimenting with some cleaner ways to expose key Dawn Native functions to Zig, and I've been trying to clean up the sample_utils.zig file as well (currently I've just done a hack that compares int representation of enum to prioritize high-power adapters, but I want a cleaner solution). Once I have something that works for my project I will likely make a PR to this repo :)
Something else I'd like to mention that might deserve another issue: sample_utils does not consistently call the deinit exposed by the mach_dawn_native header (also, I believe mach_dawn_native header is missing some deinit things, but that shouldn't be too difficult to fix).