4 ms·
People have already mentioned Metal, but if you want cross platform, https://github.com/gfx-rs/wgpu https://github.com/gfx-rs/wgpu has a vulkan-like API and cro
by dylanowen 2y ago
People have already mentioned Metal, but if you want cross platform, https://github.com/gfx-rs/wgpu https://github.com/gfx-rs/wgpu has a vulkan-like API and cross compiles to all the various GPU frameworks. I believe it uses https://github.com/KhronosGroup/MoltenVK https://github.com/KhronosGroup/MoltenVK to run on Macs. You can also see the metal shader transpilation results for debugging.
- grovesNL 2y agowgpu has its own Metal backend that most people use by default (not MoltenVK). There is also a Vulkan backend if you want to run Vulkan through MoltenVK though.
- rudedogg 2y agoWith what the OP asked for, I don't think wgpu is the right choice. They want to push the limits of Apple Silicon, or do Apple platform specific work, so an abstraction layer like wgpu is going in the opposite direction in my opinion. Metal, and Apple's docs are the place to start.
- PittleyDunkin 2y agoIndeed. I'm curious how much overhead there is in practice given the fact that the hardware wasn't designed to provide vulkan support. I honestly have no clue what to expect.