-
-
Notifications
You must be signed in to change notification settings - Fork 22k
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
Add external texture support #83519
Add external texture support #83519
Conversation
cc @maunvz |
@paddy-exe FYI, this is required to support ARCore in Godot |
b8d233e
to
460fb4e
Compare
How does this relate to textures created via Or, if this doesn't relate to that (like, if it's a totally different thing) then we should probably rename one of them, because having two unrelated types of textures both called "external" is going to be confusing :-) |
@dsnopek they're indeed different things; see this comment that goes on the difference between the two: #65778 (comment) Renaming is made complex by the fact the one I'm referring to is part of the OpenGL spec, so arguably the current Godot one should be renamed to be consistent with external references, but I don't have a strong preferences either way so long as it's clear which one we're referring to. |
As mentioned in this StackOverlfow thread, this may be supported in Vulkan using the VK_ANDROID_external_memory_android_hardware_buffer extension. |
1926f1c
to
5fd411f
Compare
Co-authored-by: Mauricio Narvaez <nvz@meta.com>
5fd411f
to
d9309cb
Compare
I think it'd be fine to rename the existing Maybe:
Naming is hard :-) EDIT: I forgot to add that I'm the one who originally named |
cc @clayjohn , you should have a look at this too. |
Is this android specific or will it work on iOS as well? |
It's not Android specific in theory, but it uses OpenGLES and Vulkan extensions which iOS doesn't (officially) support, so there would need to be investigation on whether this is available to iOS through the available compatibility APIs. |
Any updates on when will this get merged? |
Superseded by #96982 |
Starting a draft to discuss the proper way to integrate support for external texture in Godot 4.x.
This is feature that's forward-ported from Godot 3.x and is key to enable support for texture that can be painted by the target platform (see the original PR for target use-cases).
As mentioned in #36342 (review), this was punted for the 4.x release due to GLES reimplementation and the need to figure out how this applies to Vulkan.
This draft aims to restart the conversation in order to properly integrate it in Godot 4.x
Addresses #65778
Addresses godotengine/godot-proposals#4902