Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metal backend #1456

Open
AndrewBelt opened this issue Mar 24, 2019 · 2 comments
Open

Metal backend #1456

AndrewBelt opened this issue Mar 24, 2019 · 2 comments

Comments

@AndrewBelt
Copy link
Contributor

AndrewBelt commented Mar 24, 2019

Does this make sense at all? Or is it possible to use Metal right now on Mac?

My use case is that the NanoVG OpenGL backend runs too slow on MacOS 10.14 since Apple has nurfed their OpenGL drivers in that version. A Vulkan NanoVG fork exists as an experiment but is not complete. The Metal NanoVG fork is much more mature, so it makes sense for me to use Metal directly instead of Vulkan with the MoltenVK feature in GLFW.

@elmindreda
Copy link
Member

It's possible to use Metal with GLFW right now. The native access functions will give you all the objects you need to hook up Metal.

@elmindreda elmindreda changed the title Metal backend on MacOS Metal backend Mar 27, 2019
@dmitshur
Copy link
Collaborator

dmitshur commented Apr 9, 2019

It's not yet on master branch, but you can see a simple example of Metal usage at https://github.com/glfw/glfw/blob/metal-guide/examples/metal.m.

There's also a Metal via GLFW example written in Go at https://gotools.org/dmitri.shuralyov.com/gpu/mtl/example/movingtriangle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants