there is a way to get MTLRenderPassDescriptor ? #166
-
there is a safe and correct way to get MTLRenderPassDescriptor from MTSwapChain in cpp ? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
to be more precise it's to use with ImGui_ImplMetal_NewFrame. |
Beta Was this translation helpful? Give feedback.
-
Sorry I saw your post earlier but forgot to respond.
LLGL currently does not expose this descriptor not even through the native handle interface. I see that
That doesn't solve the problem that this descriptor is currently not exposed in the LLGL interface and it would also create a dependency which I want to avoid to keep LLGL lightweight. All it does is help you avoid mixing C++ with Objective-C, but Objective-C++ can already be used for interoperability. While I wouldn't recommend writing a whole project with Objective-C++, it definitely makes life easier to connect the two languages without adding wrapper libraries. |
Beta Was this translation helpful? Give feedback.
-
@coco875 I started with a new repository to better explore the use of LLGL with ImGui: https://github.com/LukasBanana/LLGL-Example-ImGui |
Beta Was this translation helpful? Give feedback.
@coco875 I had to add some missing native interfaces to
Metal::CommandBufferNativeHandle
(see fa52327), but with 79e879b the Metal backend works now with ImGui 🎉