mach icon indicating copy to clipboard operation
mach copied to clipboard

mach: default to high-power adapters; let user choose

Open emidoots opened this issue 3 years ago • 2 comments

https://matrix.to/#/!bIJeTLtOHucXQpqIcH:matrix.org/$u4RlZPTkXo8VrObrMSY6rSppArpToyK6ZRIO-F8PBvk?via=matrix.org&via=mozilla.org&via=pythons.space

image

emidoots avatar Apr 12 '22 17:04 emidoots

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.

d3m1gd avatar Apr 13 '22 12:04 d3m1gd

+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).

Luexa avatar Apr 18 '22 11:04 Luexa