Hash :
4f42a4d3
Author :
Date :
2021-12-01T18:57:48
Add more support for GL_RGBX8_ANGLE Update EquivalentBlitInternalFormat(), ValidReadPixelsFormatEnum(), and ValidReadPixelsFormatType() to support GL_RGBX8_ANGLE. Also update ANGLE_rgbx_internal_format.txt to indicate the new support in glBlitFramebuffer() and glReadPixels() for GL_RGBX8_ANGLE. Bug: angleproject:6690 Test: BlitFramebufferTestES31.BlitMultisampledRGBX8ToRGB8 Test: WebGL2CompatibilityTest.ReadPixelsRgbx8AngleUnsignedByte Change-Id: I75b6d5cb46eebbc904b86cc8e6bd18aca5403684 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3312367 Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org> Reviewed-by: Jamie Madill <jmadill@chromium.org> Commit-Queue: Tim Van Patten <timvp@google.com>
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
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
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