UI Creation using Metal

Hi Team,

I was wondering if you have any suggestion or tips for creating 2D UI Elements? I have been looking for a resource on creating even the most basic 2D UI in Metal. The reason I am asking is I am wanting to create a rather heavy graph network, examples are like the ones you see in Houdini or Aftereffect.

OpenGl has a great opensource UI GitHub - ocornut/imgui: Dear ImGui: Bloat-free Graphical User interface for C++ with minimal dependencies, I was looking for a starting point to implement the same using Metal

Thanks for the assistance,
Regards,
Simon

Personally I wouldn’t create 2D UI Elements in Metal, I would rely on Apple’s built-in solutions, such as UIViews, CALayers or SwiftUI. All these are built on top of Metal anyway.
I’ve built 500 views in SwiftUI with no obvious degradation, so it’s worth exploring that solution first.

Thank you Caroline, I will continue then with SwiftUI and using Shapes to create my Node based system.

Thank you for the help

1 Like

Let us know how it goes!

Will do, still at the very early stages… may be a while :smiley: