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.
-
-
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 -
It looks like the files/template from example_metal/ would be able to completely obsolete example_apple/ (which has been not maintained) so thats a good thing!
1 reply 0 retweets 1 like -
Out of curiosity, are the number of files there (2x2 AppDelegate, 2x2 GameViewController) because they are based on as standard Apple SDK example thing? Was always puzzled why the old example_apple/ folder has so much cruft.
1 reply 0 retweets 0 likes
That’s right, it’s an artifact of the template. ViewController and AppDelegate unfortunately derive from different base classes on iOS and macOS (with differing methods), so it’s difficult to consolidate.
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.