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 packing/unpacking functions to shader language #52767

Closed
wants to merge 1 commit into from

Conversation

Chaosus
Copy link
Member

@Chaosus Chaosus commented Sep 17, 2021

Added functions:

  • packHalf2x16
  • packUnorm2x16
  • packSnorm2x16
  • packUnorm4x8
  • packSnorm4x8
  • unpackHalf2x16
  • unpackUnorm2x16
  • unpackSnorm2x16
  • unpackUnorm4x8
  • unpackSnorm4x8

Target to close godotengine/godot-proposals#3187
I marked these functions as high-end (since it's supported since GLSL>=4.0) so it's only for Vulkan, but not GLES3.

@Chaosus Chaosus requested a review from a team as a code owner September 17, 2021 06:57
@Chaosus Chaosus added this to the 4.0 milestone Sep 17, 2021
@Chaosus
Copy link
Member Author

Chaosus commented Oct 11, 2021

Superseded by #53066

@Chaosus Chaosus closed this Oct 11, 2021
@Chaosus Chaosus deleted the shader_pack_funcs branch October 11, 2021 05:52
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.

Add built-in data (un)packing functions to the shader language
2 participants