-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
Multi-contexts with Metal backend #5203
Comments
Hello, |
I have create two MTKView. And I call ImGui::CreateContext() in each MTKView. |
If you create multiple contexts you need to switch context with |
MAC OS Metal. |
@interface IMGUIMetalView (){
-(void)drawInMTKView:(MTKView*)view
#if TARGET_OS_OSX
} Is that right? |
I've seen this link. |
Right, neither Metal nor OSX backend have been refactored to support multiple context. |
Metal cannot support multiple-viewprots neither.Is there any way to create multiple windows when using Metal on Macos. |
Well we need pull requests for both. |
Yep.Multi-viewports is like magic. |
By the way, is there any plan to make metal support multi contexts in the near future. |
I don't work for Mac so it depends on other users. For multi-viewport see #2778 and #4821 For multi-contexts, we need both OSX and Metal backends to the same as e.g #4141 with 70c6038 and 4cec3a0 |
OK.I will have a try. |
Hello. |
OS: Mac OS
Backend:Metal
I created two NSWindow with MTKView. When my imgui window name is the same, two NSWindows can respond to mouse events on any one window at the same time. When imgui window names are different, two NSWindows cannot respond to mouse events. What caused it?
The text was updated successfully, but these errors were encountered: