1Name 2 3 EXT_texture_sRGB_R8 4 5Name Strings 6 7 GL_EXT_texture_sRGB_R8 8 9Contributors 10 11 Sam Holmes 12 Maurice Ribble 13 Daniel Koch 14 Tobias Hector 15 Jan-Harald Fredriksen 16 Sourav Parmar 17 18Contact 19 20 Maurice Ribble (mribble 'at' qti.qualcomm.com) 21 22Status 23 24 Complete. 25 26Version 27 28 Last Modified Date: November 30, 2018 29 Revision: 5 30 31Number 32 33 OpenGL ES Extension #221 34 OpenGL Extension #534 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 SR8_EXT as an acceptable internal format. 54 This allows efficient sRGB sampling for source images stored as a separate 55 texture per channel. 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 SR8_EXT 0x8FBD 68 69Additions to Chapter 8 of the OpenGL ES 3.1 Specification [GL 4.6 core 70specification] (Textures and Samplers) 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 RED UNSIGNED_BYTE 1 SR8_EXT 78 79 The following table entry is added to Table 8.13 [8.12 in the GL 4.6 core 80 profile] (Correspondence of sized internal color formats to base internal 81 formats): 82 83 Sized Internal Format Base Internal Format R G B A S CR TF Req. rend. Req. tex. 84 --------------------- -------------------- - - - - - -- -- ---------- --------- 85 SR8_EXT RED 8 X X 86 87 The following table entry is added to Table 8.22 in the GL 4.6 core profile 88 (Compatible internal formats for TextureView): 89 90 Class Internal formats 91 --------------- ---------------- 92 VIEW_CLASS_8_BITS SR8_EXT 93 94 The following table entry is added to Table 8.24 [8.24 in the GL 4.6 core 95 profile] (sRGB texture internal formats): 96 97 Internal Format 98 --------------- 99 SR8_EXT 100 101Dependencies on OpenGL 102 103 If OpenGL is not supported, ignore all references to 1D textures, 104 including TexImage1D, TexStorage1D, and TextureStorage1D. 105 106Dependencies on OpenGL 4.5 and ARB_direct_state_access 107 108 If neither OpenGL 4.5 nor ARB_direct_state_access are supported, 109 ignore all references to TextureStorage3D, TextureStorage2D, and 110 TextureStorage1D. 111 112Dependencies on ARB_texture_view 113 114 If ARB_texture_view is supported, add SR8_EXT to the Internal formats 115 column of the VIEW_CLASS_8_BITS row in Table 3.X.2. 116 117Dependencies on EXT_texture_view 118 119 If EXT_texture_view is supported, add SR8_EXT to the Internal formats 120 column of the VIEW_CLASS_8_BITS row in Table 8.X.2. 121 122Dependencies on OES_texture_view 123 124 If OES_texture_view is supported, add SR8_EXT to the Internal formats 125 column of the VIEW_CLASS_8_BITS row in Table 8.X.2. 126 127Errors 128 129 None 130 131New State 132 133 None 134 135Revision History 136 137 138 Rev Date Author Description 139 ---- ---------- -------------- --------------------------------- 140 1 1/9/2015 Sam Holmes Initial revision. 141 2 1/21/2015 Maurice Ribble Cleanup minor issues 142 3 1/22/2015 Tobias Hector Removed "GL_" prefix and somewhat confusing version language. 143 4 1/28/2015 Sam Holmes Remove redundant specification of errors and clean up internal format name. 144 5 11/30/2018 Sourav Parmar Add GL interactions and register for GL. 145