This repository was archived by the owner on Sep 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 79
Zxw/3d mac #318
Merged
Merged
Zxw/3d mac #318
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
...dgets into zxw/3d_mac
...dgets into zxw/3d_mac
@zhuxingwei
zhuxingwei
changed the title
(削除) 【WIP】Zxw/3d mac (削除ここまで)
(追記) Zxw/3d mac (追記ここまで)
Apr 14, 2022
static bool UIWidgetsDisabled;
void DisableUIWidgets() {
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found that this log is wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
which log ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Debug.Log("Please change graphic api for UIWidgets.\n" +
"Metal for iOS and MacOS.\n" +
"Direct3D11 for Windows\n" +
"Vulkan for Android\n");
(not this pr's change)
Closed
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
In this PR we are trying to support OpenGL backend on Mac/iOS and external texture on it, mainly including the following changes:
(1) fix the C# side codes so that the UIWidgetsPanel can now handle both Metal and OpenGLCore/OpenGLES backends on Mac/iOS respectively via different C++ bindings.
(2) refine the UIWidgets engine codes on the C++ side to fix issues caused by OpenGL context switching: Specifically, since we have to deal with both the openGL context of UIWidgets engine itself and that of Unity engine, we need a more careful approach to guarantee that the two kinds of openGL context doesn't mess around with each other. This situation doesn't not happen for flutter.
(3) refine the UIWidgetsPanel as well as SurfaceManager codes on C++ side to support both Metal and OpenGLCore/OpenGLES backends
(4) add the support of external native texture for OpenGLCore/OpenGLES backends on Mac/iOS respectively
(5) update the build code a bit so that it now support building iOS plugin with Mac 12 SDK
In this PR, we also add support for linear colorspace support on all platforms.