Branch
Hash :
f8c8264a
Author :
Date :
2025-09-17T10:01:22
Support RGBX format with GL_RGBA when using glTexSubImage2D Add an additional combination support with GL_RGBA in glTexSubImage2D for RGBX format. Add an end2end test. Bug: angleproject:444335354 Change-Id: I96fc9d3543fc58c9f666bf149f78cf9049758a32 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/6938945 Reviewed-by: Charlie Lao <cclao@google.com> Auto-Submit: Aurora Zhang <Aurora.Zhang@arm.com> Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org> Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
Name
ANGLE_rgbx_internal_format
Name Strings
GL_ANGLE_rgbx_internal_format
Contributors
Tim Van Patten, Google
Contacts
Tim Van Patten, Google (timvp 'at' google 'dot' com)
Notice
Copyright (c) 2021 The Khronos Group Inc. Copyright terms at
http://www.khronos.org/registry/speccopyright.html
Status
Draft.
Version
Version 1, November 22, 2021
Number
OpenGL ES Extension ###
Dependencies
OpenGL ES 2.0 is required.
Overview
This extension introduces a sized internal RGBX format. This is a 32-bit representation of the
24-bit RGB format, with the Alpha channel ignored.
glBlitFramebuffer() will treat RGBX8 as RGB8 when validating the formats for the READ and DRAW
framebuffers match, since the X channel is ignored.
glReadPixels() will accept the following format+type combinations:
1. format = GL_RGBX8_ANGLE, type = GL_UNSIGNED_BYTE
glTexSubImage* will accept the following format+type combinations:
1. format = GL_RGB, type = GL_UNSIGNED_BYTE
2. format = GL_RGBA, type = GL_UNSIGNED_BYTE
New Types
None.
New Procedures and Functions
None.
New Tokens
// 32-bit RGBX format
GL_RGBX8_ANGLE 0x96BA
Issues
None.
Revision History
#1 - (November 22, 2021) Tim Van Patten
Original draft