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

Comments

Projects
None yet
3 participants
@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

This comment has been minimized.

Copy link
Member

elmindreda commented Mar 27, 2019

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 added the macOS label Mar 27, 2019

@elmindreda elmindreda changed the title Metal backend on MacOS Metal backend Mar 27, 2019

@dmitshur

This comment has been minimized.

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.

@elmindreda elmindreda added the Metal label Apr 16, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.