Skip to content
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 samplerExternalOES type to variable types of shading language #10299

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

Chaosus
Copy link
Member

@Chaosus Chaosus commented Nov 21, 2024

To reflect change from godotengine/godot#96982

Comment on lines 1028 to 1032
| **samplerExternalOES** | **ExternalTexture** | External texture. |
| | | Only supported in Compatibility/Android platform. |
Copy link
Contributor

@dsnopek dsnopek Nov 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need to say it here now (because we don't support Vulkan yet), but just a note about when we do eventually add support for Vulkan: it can use sampler2D for external textures which is what samplerExternalOES is translated to on Vulkan, so if you use samplerExternalOES, you'll be able to write a shader that'll work both on OpenGL and Vulkan.

Copy link
Contributor

@dsnopek dsnopek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@tetrapod00
Copy link
Contributor

This should be added to the table of data types at the top of the Shading Language page, too. Looks like you only added it to the table comparing GDScript types

@Chaosus Chaosus force-pushed the shader_new_uniform_type branch from 9622093 to e4fcb8c Compare November 21, 2024 20:40
@Chaosus Chaosus force-pushed the shader_new_uniform_type branch from e4fcb8c to c46c219 Compare November 21, 2024 20:43
@Chaosus
Copy link
Member Author

Chaosus commented Nov 21, 2024

@tetrapod00 Check again, I think I've fixed it.

@tetrapod00 tetrapod00 merged commit 0ceba58 into godotengine:master Nov 21, 2024
1 check passed
@tetrapod00
Copy link
Contributor

Thanks!

@skyace65 skyace65 added this to the 4.4 milestone Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants