Oh! I had completely missed out on the original link. At it happens, I have refactored the imgui examples/binding system recently to isolate the rendering from the inputs/windowing, and a Metal renderer for imgui would be super useful!
-
-
Awesome, it’s been a while since I looked at this, but it would be nice to write a Metal renderer in the new style. I’ll try to do that this week.
1 reply 0 retweets 3 likes -
I lost the source for the original port, but I made really good progress today on a new Metal backend and sample. Will keep you in the loop.
3 replies 0 retweets 1 like -
Thank you, much appreciated! There's an OSX branch with a imgui_impl_osx.mm that implements the OSX side of things maybe useful to look at (ideally imgui_impl_osx.mm would combine with Metal/GL/Vulkan bindings) and some infohttps://github.com/ocornut/imgui/issues/1873 …
2 replies 0 retweets 0 likes -
But realistically anything OSX is stagnant at the moment, I don't know if that imgui_impl_osx.mm design goes in the right direction?
1 reply 0 retweets 0 likes -
Something to be mindful that may alter your Metal design is: in 'viewport' branch, the _binding_ code are able to create windows & rendering contexts. So hypothetical imgui_impl_metal in 'master' would handle 1 user-created Metal context, in 'viewport' branch can create more,
1 reply 0 retweets 0 likes -
How it affected the Vulkan backend is simply that some of the helper/cruft required to setup the context instead of being in main.cpp (example code) are provided as helpers in the binding code so main.cpp can use them and binding also uses them to create secondary windows.
1 reply 0 retweets 0 likes -
I would advise glancing then ignoring 'viewport' branch for now, because it really makes things a little more complicated, and having a working Metal renderer in 'master' would be immediately and readily useful as a first step.
1 reply 0 retweets 0 likes -
Here’s a look at my Metal renderer’s progress. Will support iOS and macOS with the same source soon. https://github.com/warrenm/imgui/blob/metal/examples/imgui_impl_metal.mm …pic.twitter.com/myOMT4eEGl
3 replies 2 retweets 28 likes -
Thanks! I can't really test super often myself but I'll borrow my wife's laptop to test at some point.
2 replies 0 retweets 0 likes
Sure thing! It’s still in-progress (doesn’t recycle buffers, and a lot of IO stuff isn’t wired up), and I haven’t taken your architectural suggestions into account, but I’m happy with today’s progress.
-
-
Thanks a lot, this will be very useful for many users :)
0 replies 0 retweets 1 likeThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.