1Name 2 3 EXT_texture_sRGB_RG8 4 5Name Strings 6 7 GL_EXT_texture_sRGB_RG8 8 9Contributors 10 11 Sam Holmes 12 Maurice Ribble 13 Tobias Hector 14 Jan-Harald Fredriksen 15 Dylan Perks 16 Contributors to EXT_texture_sRGB_R8, on which this is based. 17 18Contact 19 20 Tobias Hector (tobias.hector 'at' imgtec.com) 21 22Status 23 24 Complete. 25 26Version 27 28 Last Modified Date: December 11, 2020 29 Revision: 4 30 31Number 32 33 OpenGL ES Extension #223 34 OpenGL Extension #555 35 36Dependencies 37 38 OpenGL ES 3.0 or OpenGL 1.2 is required. 39 40 This extension is written against the OpenGL ES 3.1 and 41 OpenGL 4.6 (Core Profile) specifications. 42 43 This extension interacts with ARB_texture_view. 44 45 This extension interacts with EXT_texture_view. 46 47 This extension interacts with OES_texture_view. 48 49 This extension interacts with ARB_direct_state_access. 50 51Overview 52 53 This extension introduces SRG8_EXT as an acceptable internal format. 54 This allows efficient sRGB sampling for source images stored with 2 55 channels. 56 57New Procedures and Functions 58 59 None 60 61New Tokens 62 63 Accepted by the <internalformat> parameters of TexImage3D, TexImage2D, 64 TexImage1D, TexStorage3D, TexStorage2D, TexStorage1D, TextureStorage3D, 65 TextureStorage2D, and TextureStorage1D: 66 67 SRG8_EXT 0x8FBE 68 69Additions to Chapter 8 of the OpenGL ES 3.1 Specification (Textures and 70Samplers) 71 72 The following table entry is added to Table 8.2 (Valid combinations of 73 format, type and sized internalformat): 74 75 Format Type External Bytes per Pixel Internal Format 76 ------ ---- ------------------------ --------------- 77 RG UNSIGNED_BYTE 2 SRG8_EXT 78 79 The following table entry is added to Table 8.13 (Correspondence of sized 80 internal color formats to base internal formats): 81 82 Sized Internal Format Base Internal Format R G B A S CR TF Req. rend. Req. tex. 83 --------------------- -------------------- - - - - - -- -- ---------- --------- 84 SRG8_EXT RG 8 8 X X 85 86 The following table entry is added to Table 8.24 (sRGB texture internal 87 formats): 88 89 Internal Format 90 --------------- 91 SRG8_EXT 92 93Additions to Chapter 8 of the OpenGL 4.6 (Core Profile) Specification 94(Textures and Samplers) 95 96 The following table entry is added to Table 8.2 (Valid combinations of 97 format, type and sized internalformat): 98 99 Format Type External Bytes per Pixel Internal Format 100 ------ ---- ------------------------ --------------- 101 RG UNSIGNED_BYTE 2 SRG8_EXT 102 103 The following table entry is added to Table 8.12 (Correspondence of sized 104 internal color formats to base internal formats): 105 106 Sized Internal Format Base Internal Format R G B A S CR TF Req. rend. Req. tex. 107 --------------------- -------------------- - - - - - -- -- ---------- --------- 108 SRG8_EXT RG 8 8 X X 109 110 The following table entry is added to Table 8.22 (Compatible internal 111 formats for TextureView): 112 113 Class Internal formats 114 --------------- ---------------- 115 VIEW_CLASS_16_BITS SRG8_EXT 116 117 The following table entry is added to Table 8.24 (sRGB texture internal 118 formats): 119 120 Internal Format 121 --------------- 122 SRG8_EXT 123 124Dependencies on OpenGL 125 126 If OpenGL is not supported, ignore all references to 1D textures, 127 including TexImage1D, TexStorage1D, and TextureStorage1D. 128 129Dependencies on OpenGL 4.5 and ARB_direct_state_access 130 131 If neither OpenGL 4.5 nor ARB_direct_state_access are supported, 132 ignore all references to TextureStorage3D, TextureStorage2D, and 133 TextureStorage1D. 134 135Dependencies on ARB_texture_view 136 137 If ARB_texture_view is supported, add SRG8_EXT to the Internal formats 138 column of the VIEW_CLASS_16_BITS row in Table 3.X.2. 139 140Dependencies on EXT_texture_view 141 142 If EXT_texture_view is supported, add SRG8_EXT to the Internal formats 143 column of the VIEW_CLASS_16_BITS row in Table 8.X.2. 144 145Dependencies on OES_texture_view 146 147 If OES_texture_view is supported, add SRG8_EXT to the Internal formats 148 column of the VIEW_CLASS_16_BITS row in Table 8.X.2. 149 150Errors 151 152 None 153 154New State 155 156 None 157 158Revision History 159 160 #01 2/5/2015 Tobias Hector Initial revision. 161 #02 2/5/2015 Tobias Hector Fixed Table 8.13 entry and whitespace issues. 162 #03 2/17/2015 Tobias Hector Fixed Table 8.2 entry to correctly say 2 bytes. 163 #04 12/11/2020 Dylan Perks Add GL interactions and register for GL 164