mach icon indicating copy to clipboard operation
mach copied to clipboard

Make mach/gpu consumable as a separate repository

Open emidoots opened this issue 2 years ago • 2 comments

If you want to use mach/gpu (the WebGPU bindings for Zig) without anything else we're building (the ECS and numerous other things in the future) you should be able to.

We'll publish the gpu/ subdirectory of this repo as a separate repo github.com/hexops/mach-gpu, similar to how glfw/ is available here and gpu-dawn/ is available here.

Probably desirable for integration into e.g. https://github.com/michal-z/zig-gamedev too.

emidoots avatar Mar 27 '22 05:03 emidoots

Does the "gpu" part necessarily depend on glfw?

johanfforsberg avatar Apr 23 '22 09:04 johanfforsberg

mach/gpu depends on mach/gpu-dawn, which depends on mach/glfw for now. Dawn exposes some GLFW-specific integration code that is used for the OpenGL backend, currently, but they're moving to a surface-based API (which is available for all other backends except opengl.)

So the answer is: today yes, long-term, no.

emidoots avatar Apr 23 '22 10:04 emidoots