Home | History | Annotate | Download | only in opengl

Lines Matching full:case

56 		case TextureFormat::SIGNED_INT8:
57 case TextureFormat::SIGNED_INT16:
58 case TextureFormat::SIGNED_INT32:
59 case TextureFormat::UNSIGNED_INT8:
60 case TextureFormat::UNSIGNED_INT16:
61 case TextureFormat::UNSIGNED_INT32:
62 case TextureFormat::UNSIGNED_INT_1010102_REV:
73 case TextureFormat::A: format = GL_ALPHA; break;
74 case TextureFormat::L: format = GL_LUMINANCE; break;
75 case TextureFormat::LA: format = GL_LUMINANCE_ALPHA; break;
76 case TextureFormat::R: format = isInt ? GL_RED_INTEGER : GL_RED; break;
77 case TextureFormat::RG: format = isInt ? GL_RG_INTEGER : GL_RG; break;
78 case TextureFormat::RGB: format = isInt ? GL_RGB_INTEGER : GL_RGB; break;
79 case TextureFormat::RGBA: format = isInt ? GL_RGBA_INTEGER : GL_RGBA; break;
80 case TextureFormat::sR: format = GL_RED; break;
81 case TextureFormat::sRG: format = GL_RG; break;
82 case TextureFormat::sRGB: format = GL_RGB; break;
83 case TextureFormat::sRGBA: format = GL_RGBA; break;
84 case TextureFormat::D: format = GL_DEPTH_COMPONENT; break;
85 case TextureFormat::DS: format = GL_DEPTH_STENCIL; break;
86 case TextureFormat::S: format = GL_STENCIL_INDEX; break;
88 case TextureFormat::BGRA:
99 case TextureFormat::SNORM_INT8: type = GL_BYTE; break;
100 case TextureFormat::SNORM_INT16: type = GL_SHORT; break;
101 case TextureFormat::UNORM_INT8: type = GL_UNSIGNED_BYTE; break;
102 case TextureFormat::UNORM_INT16: type = GL_UNSIGNED_SHORT; break;
103 case TextureFormat::UNORM_SHORT_565: type = GL_UNSIGNED_SHORT_5_6_5; break;
104 case TextureFormat::UNORM_SHORT_4444: type = GL_UNSIGNED_SHORT_4_4_4_4; break;
105 case TextureFormat::UNORM_SHORT_5551: type = GL_UNSIGNED_SHORT_5_5_5_1; break;
106 case TextureFormat::SIGNED_INT8: type = GL_BYTE; break;
107 case TextureFormat::SIGNED_INT16: type = GL_SHORT; break;
108 case TextureFormat::SIGNED_INT32: type = GL_INT; break;
109 case TextureFormat::UNSIGNED_INT8: type = GL_UNSIGNED_BYTE; break;
110 case TextureFormat::UNSIGNED_INT16: type = GL_UNSIGNED_SHORT; break;
111 case TextureFormat::UNSIGNED_INT32: type = GL_UNSIGNED_INT; break;
112 case TextureFormat::FLOAT: type = GL_FLOAT; break;
113 case TextureFormat::UNORM_INT_101010: type = GL_UNSIGNED_INT_2_10_10_10_REV; break;
114 case TextureFormat::UNORM_INT_1010102_REV: type = GL_UNSIGNED_INT_2_10_10_10_REV; break;
115 case TextureFormat::UNSIGNED_INT_1010102_REV: type = GL_UNSIGNED_INT_2_10_10_10_REV; break;
116 case TextureFormat::UNSIGNED_INT_11F_11F_10F_REV: type = GL_UNSIGNED_INT_10F_11F_11F_REV; break;
117 case TextureFormat::UNSIGNED_INT_999_E5_REV: type = GL_UNSIGNED_INT_5_9_9_9_REV; break;
118 case TextureFormat::HALF_FLOAT: type = GL_HALF_FLOAT; break;
119 case TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV: type = GL_FLOAT_32_UNSIGNED_INT_24_8_REV; break;
120 case TextureFormat::UNSIGNED_INT_24_8: type = texFormat.order == TextureFormat::D
150 case FMT_CASE(RGBA, UNORM_SHORT_5551): return GL_RGB5_A1;
151 case FMT_CASE(RGBA, UNORM_SHORT_4444): return GL_RGBA4;
152 case FMT_CASE(RGB, UNORM_SHORT_565): return GL_RGB565;
153 case FMT_CASE(D, UNORM_INT16): return GL_DEPTH_COMPONENT16;
154 case FMT_CASE(S, UNSIGNED_INT8): return GL_STENCIL_INDEX8;
156 case FMT_CASE(RGBA, FLOAT): return GL_RGBA32F;
157 case FMT_CASE(RGBA, SIGNED_INT32): return GL_RGBA32I;
158 case FMT_CASE(RGBA, UNSIGNED_INT32): return GL_RGBA32UI;
159 case FMT_CASE(RGBA, UNORM_INT16): return GL_RGBA16;
160 case FMT_CASE(RGBA, SNORM_INT16): return GL_RGBA16_SNORM;
161 case FMT_CASE(RGBA, HALF_FLOAT): return GL_RGBA16F;
162 case FMT_CASE(RGBA, SIGNED_INT16): return GL_RGBA16I;
163 case FMT_CASE(RGBA, UNSIGNED_INT16): return GL_RGBA16UI;
164 case FMT_CASE(RGBA, UNORM_INT8): return GL_RGBA8;
165 case FMT_CASE(RGBA, SIGNED_INT8): return GL_RGBA8I;
166 case FMT_CASE(RGBA, UNSIGNED_INT8): return GL_RGBA8UI;
167 case FMT_CASE(sRGBA, UNORM_INT8): return GL_SRGB8_ALPHA8;
168 case FMT_CASE(RGBA, UNORM_INT_1010102_REV): return GL_RGB10_A2;
169 case FMT_CASE(RGBA, UNSIGNED_INT_1010102_REV): return GL_RGB10_A2UI;
170 case FMT_CASE(RGBA, SNORM_INT8): return GL_RGBA8_SNORM;
172 case FMT_CASE(RGB, UNORM_INT8): return GL_RGB8;
173 case FMT_CASE(RGB, UNSIGNED_INT_11F_11F_10F_REV): return GL_R11F_G11F_B10F;
174 case FMT_CASE(RGB, FLOAT): return GL_RGB32F;
175 case FMT_CASE(RGB, SIGNED_INT32): return GL_RGB32I;
176 case FMT_CASE(RGB, UNSIGNED_INT32): return GL_RGB32UI;
177 case FMT_CASE(RGB, UNORM_INT16): return GL_RGB16;
178 case FMT_CASE(RGB, SNORM_INT16): return GL_RGB16_SNORM;
179 case FMT_CASE(RGB, HALF_FLOAT): return GL_RGB16F;
180 case FMT_CASE(RGB, SIGNED_INT16): return GL_RGB16I;
181 case FMT_CASE(RGB, UNSIGNED_INT16): return GL_RGB16UI;
182 case FMT_CASE(RGB, SNORM_INT8): return GL_RGB8_SNORM;
183 case FMT_CASE(RGB, SIGNED_INT8): return GL_RGB8I;
184 case FMT_CASE(RGB, UNSIGNED_INT8): return GL_RGB8UI;
185 case FMT_CASE(sRGB, UNORM_INT8): return GL_SRGB8;
186 case FMT_CASE(RGB, UNSIGNED_INT_999_E5_REV): return GL_RGB9_E5;
187 case FMT_CASE(RGB, UNORM_INT_1010102_REV): return GL_RGB10;
189 case FMT_CASE(RG, FLOAT): return GL_RG32F;
190 case FMT_CASE(RG, SIGNED_INT32): return GL_RG32I;
191 case FMT_CASE(RG, UNSIGNED_INT32): return GL_RG32UI;
192 case FMT_CASE(RG, UNORM_INT16): return GL_RG16;
193 case FMT_CASE(RG, SNORM_INT16): return GL_RG16_SNORM;
194 case FMT_CASE(RG, HALF_FLOAT): return GL_RG16F;
195 case FMT_CASE(RG, SIGNED_INT16): return GL_RG16I;
196 case FMT_CASE(RG, UNSIGNED_INT16): return GL_RG16UI;
197 case FMT_CASE(RG, UNORM_INT8): return GL_RG8;
198 case FMT_CASE(RG, SIGNED_INT8): return GL_RG8I;
199 case FMT_CASE(RG, UNSIGNED_INT8): return GL_RG8UI;
200 case FMT_CASE(RG, SNORM_INT8): return GL_RG8_SNORM;
201 case FMT_CASE(sRG, UNORM_INT8): return GL_SRG8_EXT;
203 case FMT_CASE(R, FLOAT): return GL_R32F;
204 case FMT_CASE(R, SIGNED_INT32): return GL_R32I;
205 case FMT_CASE(R, UNSIGNED_INT32): return GL_R32UI;
206 case FMT_CASE(R, UNORM_INT16): return GL_R16;
207 case FMT_CASE(R, SNORM_INT16): return GL_R16_SNORM;
208 case FMT_CASE(R, HALF_FLOAT): return GL_R16F;
209 case FMT_CASE(R, SIGNED_INT16): return GL_R16I;
210 case FMT_CASE(R, UNSIGNED_INT16): return GL_R16UI;
211 case FMT_CASE(R, UNORM_INT8): return GL_R8;
212 case FMT_CASE(R, SIGNED_INT8): return GL_R8I;
213 case FMT_CASE(R, UNSIGNED_INT8): return GL_R8UI;
214 case FMT_CASE(R, SNORM_INT8): return GL_R8_SNORM;
215 case FMT_CASE(sR, UNORM_INT8): return GL_SR8_EXT;
217 case FMT_CASE(D, FLOAT): return GL_DEPTH_COMPONENT32F;
218 case FMT_CASE(D, UNSIGNED_INT_24_8): return GL_DEPTH_COMPONENT24;
219 case FMT_CASE(D, UNSIGNED_INT32): return GL_DEPTH_COMPONENT32;
220 case FMT_CASE(DS, FLOAT_UNSIGNED_INT_24_8_REV): return GL_DEPTH32F_STENCIL8;
221 case FMT_CASE(DS, UNSIGNED_INT_24_8): return GL_DEPTH24_STENCIL8;
241 case tcu::COMPRESSEDTEXFORMAT_ETC1_RGB8: return GL_ETC1_RGB8_OES;
242 case tcu::COMPRESSEDTEXFORMAT_EAC_R11: return GL_COMPRESSED_R11_EAC;
243 case tcu::COMPRESSEDTEXFORMAT_EAC_SIGNED_R11: return GL_COMPRESSED_SIGNED_R11_EAC;
244 case tcu::COMPRESSEDTEXFORMAT_EAC_RG11: return GL_COMPRESSED_RG11_EAC;
245 case tcu::COMPRESSEDTEXFORMAT_EAC_SIGNED_RG11: return GL_COMPRESSED_SIGNED_RG11_EAC;
246 case tcu::COMPRESSEDTEXFORMAT_ETC2_RGB8: return GL_COMPRESSED_RGB8_ETC2;
247 case tcu::COMPRESSEDTEXFORMAT_ETC2_SRGB8: return GL_COMPRESSED_SRGB8_ETC2;
248 case tcu::COMPRESSEDTEXFORMAT_ETC2_RGB8_PUNCHTHROUGH_ALPHA1: return GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2;
249 case tcu::COMPRESSEDTEXFORMAT_ETC2_SRGB8_PUNCHTHROUGH_ALPHA1: return GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2;
250 case tcu::COMPRESSEDTEXFORMAT_ETC2_EAC_RGBA8: return GL_COMPRESSED_RGBA8_ETC2_EAC;
251 case tcu::COMPRESSEDTEXFORMAT_ETC2_EAC_SRGB8_ALPHA8: return GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC;
253 case tcu::COMPRESSEDTEXFORMAT_ASTC_4x4_RGBA: return GL_COMPRESSED_RGBA_ASTC_4x4_KHR;
254 case tcu::COMPRESSEDTEXFORMAT_ASTC_5x4_RGBA: return GL_COMPRESSED_RGBA_ASTC_5x4_KHR;
255 case tcu::COMPRESSEDTEXFORMAT_ASTC_5x5_RGBA: return GL_COMPRESSED_RGBA_ASTC_5x5_KHR;
256 case tcu::COMPRESSEDTEXFORMAT_ASTC_6x5_RGBA: return GL_COMPRESSED_RGBA_ASTC_6x5_KHR;
257 case tcu::COMPRESSEDTEXFORMAT_ASTC_6x6_RGBA: return GL_COMPRESSED_RGBA_ASTC_6x6_KHR;
258 case tcu::COMPRESSEDTEXFORMAT_ASTC_8x5_RGBA: return GL_COMPRESSED_RGBA_ASTC_8x5_KHR;
259 case tcu::COMPRESSEDTEXFORMAT_ASTC_8x6_RGBA: return GL_COMPRESSED_RGBA_ASTC_8x6_KHR;
260 case tcu::COMPRESSEDTEXFORMAT_ASTC_8x8_RGBA: return GL_COMPRESSED_RGBA_ASTC_8x8_KHR;
261 case tcu::COMPRESSEDTEXFORMAT_ASTC_10x5_RGBA: return GL_COMPRESSED_RGBA_ASTC_10x5_KHR;
262 case tcu::COMPRESSEDTEXFORMAT_ASTC_10x6_RGBA: return GL_COMPRESSED_RGBA_ASTC_10x6_KHR;
263 case tcu::COMPRESSEDTEXFORMAT_ASTC_10x8_RGBA: return GL_COMPRESSED_RGBA_ASTC_10x8_KHR;
264 case tcu::COMPRESSEDTEXFORMAT_ASTC_10x10_RGBA: return GL_COMPRESSED_RGBA_ASTC_10x10_KHR;
265 case tcu::COMPRESSEDTEXFORMAT_ASTC_12x10_RGBA: return GL_COMPRESSED_RGBA_ASTC_12x10_KHR;
266 case tcu::COMPRESSEDTEXFORMAT_ASTC_12x12_RGBA: return GL_COMPRESSED_RGBA_ASTC_12x12_KHR;
267 case tcu::COMPRESSEDTEXFORMAT_ASTC_4x4_SRGB8_ALPHA8: return GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR;
268 case tcu::COMPRESSEDTEXFORMAT_ASTC_5x4_SRGB8_ALPHA8: return GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR;
269 case tcu::COMPRESSEDTEXFORMAT_ASTC_5x5_SRGB8_ALPHA8: return GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR;
270 case tcu::COMPRESSEDTEXFORMAT_ASTC_6x5_SRGB8_ALPHA8: return GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR;
271 case tcu::COMPRESSEDTEXFORMAT_ASTC_6x6_SRGB8_ALPHA8: return GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR;
272 case tcu::COMPRESSEDTEXFORMAT_ASTC_8x5_SRGB8_ALPHA8: return GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR;
273 case tcu::COMPRESSEDTEXFORMAT_ASTC_8x6_SRGB8_ALPHA8: return GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR;
274 case tcu::COMPRESSEDTEXFORMAT_ASTC_8x8_SRGB8_ALPHA8: return GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR;
275 case tcu::COMPRESSEDTEXFORMAT_ASTC_10x5_SRGB8_ALPHA8: return GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR;
276 case tcu::COMPRESSEDTEXFORMAT_ASTC_10x6_SRGB8_ALPHA8: return GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR;
277 case tcu::COMPRESSEDTEXFORMAT_ASTC_10x8_SRGB8_ALPHA8: return GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR;
278 case tcu::COMPRESSEDTEXFORMAT_ASTC_10x10_SRGB8_ALPHA8: return GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR;
279 case tcu::COMPRESSEDTEXFORMAT_ASTC_12x10_SRGB8_ALPHA8: return GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR;
280 case tcu::COMPRESSEDTEXFORMAT_ASTC_12x12_SRGB8_ALPHA8: return GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR;
300 case GL_ETC1_RGB8_OES: return tcu::COMPRESSEDTEXFORMAT_ETC1_RGB8;
301 case GL_COMPRESSED_R11_EAC: return tcu::COMPRESSEDTEXFORMAT_EAC_R11;
302 case GL_COMPRESSED_SIGNED_R11_EAC: return tcu::COMPRESSEDTEXFORMAT_EAC_SIGNED_R11;
303 case GL_COMPRESSED_RG11_EAC: return tcu::COMPRESSEDTEXFORMAT_EAC_RG11;
304 case GL_COMPRESSED_SIGNED_RG11_EAC: return tcu::COMPRESSEDTEXFORMAT_EAC_SIGNED_RG11;
305 case GL_COMPRESSED_RGB8_ETC2: return tcu::COMPRESSEDTEXFORMAT_ETC2_RGB8;
306 case GL_COMPRESSED_SRGB8_ETC2: return tcu::COMPRESSEDTEXFORMAT_ETC2_SRGB8;
307 case GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: return tcu::COMPRESSEDTEXFORMAT_ETC2_RGB8_PUNCHTHROUGH_ALPHA1;
308 case GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: return tcu::COMPRESSEDTEXFORMAT_ETC2_SRGB8_PUNCHTHROUGH_ALPHA1;
309 case GL_COMPRESSED_RGBA8_ETC2_EAC: return tcu::COMPRESSEDTEXFORMAT_ETC2_EAC_RGBA8;
310 case GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: return tcu::COMPRESSEDTEXFORMAT_ETC2_EAC_SRGB8_ALPHA8;
312 case GL_COMPRESSED_RGBA_ASTC_4x4_KHR: return tcu::COMPRESSEDTEXFORMAT_ASTC_4x4_RGBA;
313 case GL_COMPRESSED_RGBA_ASTC_5x4_KHR: return tcu::COMPRESSEDTEXFORMAT_ASTC_5x4_RGBA;
314 case GL_COMPRESSED_RGBA_ASTC_5x5_KHR: return tcu::COMPRESSEDTEXFORMAT_ASTC_5x5_RGBA;
315 case
316 case GL_COMPRESSED_RGBA_ASTC_6x6_KHR: return tcu::COMPRESSEDTEXFORMAT_ASTC_6x6_RGBA;
317 case GL_COMPRESSED_RGBA_ASTC_8x5_KHR: return tcu::COMPRESSEDTEXFORMAT_ASTC_8x5_RGBA;
318 case GL_COMPRESSED_RGBA_ASTC_8x6_KHR: return tcu::COMPRESSEDTEXFORMAT_ASTC_8x6_RGBA;
319 case GL_COMPRESSED_RGBA_ASTC_8x8_KHR: return tcu::COMPRESSEDTEXFORMAT_ASTC_8x8_RGBA;
320 case GL_COMPRESSED_RGBA_ASTC_10x5_KHR: return tcu::COMPRESSEDTEXFORMAT_ASTC_10x5_RGBA;
321 case GL_COMPRESSED_RGBA_ASTC_10x6_KHR: return tcu::COMPRESSEDTEXFORMAT_ASTC_10x6_RGBA;
322 case GL_COMPRESSED_RGBA_ASTC_10x8_KHR: return tcu::COMPRESSEDTEXFORMAT_ASTC_10x8_RGBA;
323 case GL_COMPRESSED_RGBA_ASTC_10x10_KHR: return tcu::COMPRESSEDTEXFORMAT_ASTC_10x10_RGBA;
324 case GL_COMPRESSED_RGBA_ASTC_12x10_KHR: return tcu::COMPRESSEDTEXFORMAT_ASTC_12x10_RGBA;
325 case GL_COMPRESSED_RGBA_ASTC_12x12_KHR: return tcu::COMPRESSEDTEXFORMAT_ASTC_12x12_RGBA;
326 case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: return tcu::COMPRESSEDTEXFORMAT_ASTC_4x4_SRGB8_ALPHA8;
327 case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: return tcu::COMPRESSEDTEXFORMAT_ASTC_5x4_SRGB8_ALPHA8;
328 case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: return tcu::COMPRESSEDTEXFORMAT_ASTC_5x5_SRGB8_ALPHA8;
329 case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: return tcu::COMPRESSEDTEXFORMAT_ASTC_6x5_SRGB8_ALPHA8;
330 case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: return tcu::COMPRESSEDTEXFORMAT_ASTC_6x6_SRGB8_ALPHA8;
331 case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: return tcu::COMPRESSEDTEXFORMAT_ASTC_8x5_SRGB8_ALPHA8;
332 case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: return tcu::COMPRESSEDTEXFORMAT_ASTC_8x6_SRGB8_ALPHA8;
333 case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: return tcu::COMPRESSEDTEXFORMAT_ASTC_8x8_SRGB8_ALPHA8;
334 case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: return tcu::COMPRESSEDTEXFORMAT_ASTC_10x5_SRGB8_ALPHA8;
335 case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: return tcu::COMPRESSEDTEXFORMAT_ASTC_10x6_SRGB8_ALPHA8;
336 case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: return tcu::COMPRESSEDTEXFORMAT_ASTC_10x8_SRGB8_ALPHA8;
337 case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: return tcu::COMPRESSEDTEXFORMAT_ASTC_10x10_SRGB8_ALPHA8;
338 case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: return tcu::COMPRESSEDTEXFORMAT_ASTC_12x10_SRGB8_ALPHA8;
339 case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: return tcu::COMPRESSEDTEXFORMAT_ASTC_12x12_SRGB8_ALPHA8;
350 case GL_ETC1_RGB8_OES:
351 case GL_COMPRESSED_R11_EAC:
352 case GL_COMPRESSED_SIGNED_R11_EAC:
353 case GL_COMPRESSED_RG11_EAC:
354 case GL_COMPRESSED_SIGNED_RG11_EAC:
355 case GL_COMPRESSED_RGB8_ETC2:
356 case GL_COMPRESSED_SRGB8_ETC2:
357 case GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:
358 case GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:
359 case GL_COMPRESSED_RGBA8_ETC2_EAC:
360 case GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:
361 case GL_COMPRESSED_RGBA_ASTC_4x4_KHR:
362 case GL_COMPRESSED_RGBA_ASTC_5x4_KHR:
363 case GL_COMPRESSED_RGBA_ASTC_5x5_KHR:
364 case GL_COMPRESSED_RGBA_ASTC_6x5_KHR:
365 case GL_COMPRESSED_RGBA_ASTC_6x6_KHR:
366 case GL_COMPRESSED_RGBA_ASTC_8x5_KHR:
367 case GL_COMPRESSED_RGBA_ASTC_8x6_KHR:
368 case GL_COMPRESSED_RGBA_ASTC_8x8_KHR:
369 case GL_COMPRESSED_RGBA_ASTC_10x5_KHR:
370 case GL_COMPRESSED_RGBA_ASTC_10x6_KHR:
371 case GL_COMPRESSED_RGBA_ASTC_10x8_KHR:
372 case GL_COMPRESSED_RGBA_ASTC_10x10_KHR:
373 case GL_COMPRESSED_RGBA_ASTC_12x10_KHR:
374 case GL_COMPRESSED_RGBA_ASTC_12x12_KHR:
375 case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:
376 case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:
377 case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:
378 case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:
379 case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:
380 case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:
381 case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:
382 case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:
383 case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:
384 case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:
385 case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:
386 case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:
387 case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:
388 case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:
403 case GL_UNSIGNED_BYTE: return normalized ? TextureFormat::UNORM_INT8 : TextureFormat::UNSIGNED_INT8;
404 case GL_BYTE: return normalized ? TextureFormat::SNORM_INT8 : TextureFormat::SIGNED_INT8;
405 case GL_UNSIGNED_SHORT: return normalized ? TextureFormat::UNORM_INT16 : TextureFormat::UNSIGNED_INT16;
406 case GL_SHORT: return normalized ? TextureFormat::SNORM_INT16 : TextureFormat::SIGNED_INT16;
407 case GL_UNSIGNED_INT: return normalized ? TextureFormat::UNORM_INT32 : TextureFormat::UNSIGNED_INT32;
408 case GL_INT: return normalized ? TextureFormat::SNORM_INT32 : TextureFormat::SIGNED_INT32;
409 case GL_FLOAT: return TextureFormat::FLOAT;
410 case GL_UNSIGNED_SHORT_4_4_4_4: return TextureFormat::UNORM_SHORT_4444;
411 case GL_UNSIGNED_SHORT_5_5_5_1: return TextureFormat::UNORM_SHORT_5551;
412 case GL_UNSIGNED_SHORT_5_6_5: return TextureFormat::UNORM_SHORT_565;
413 case GL_HALF_FLOAT: return TextureFormat::HALF_FLOAT;
414 case GL_UNSIGNED_INT_2_10_10_10_REV: return normalized ? TextureFormat::UNORM_INT_1010102_REV : TextureFormat::UNSIGNED_INT_1010102_REV;
415 case GL_UNSIGNED_INT_10F_11F_11F_REV: return TextureFormat::UNSIGNED_INT_11F_11F_10F_REV;
416 case GL_UNSIGNED_INT_24_8: return TextureFormat::UNSIGNED_INT_24_8;
417 case GL_FLOAT_32_UNSIGNED_INT_24_8_REV: return TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV;
418 case GL_UNSIGNED_INT_5_9_9_9_REV: return TextureFormat::UNSIGNED_INT_999_E5_REV;
440 case GL_ALPHA: return TextureFormat(TextureFormat::A, mapGLChannelType(dataType, true));
441 case GL_LUMINANCE: return TextureFormat(TextureFormat::L, mapGLChannelType(dataType, true));
442 case GL_LUMINANCE_ALPHA: return TextureFormat(TextureFormat::LA, mapGLChannelType(dataType, true));
443 case GL_RGB: return TextureFormat(TextureFormat::RGB, mapGLChannelType(dataType, true));
444 case GL_RGBA: return TextureFormat(TextureFormat::RGBA, mapGLChannelType(dataType, true));
445 case GL_BGRA: return TextureFormat(TextureFormat::BGRA, mapGLChannelType(dataType, true));
446 case GL_RG: return TextureFormat(TextureFormat::RG, mapGLChannelType(dataType, true));
447 case GL_RED: return TextureFormat(TextureFormat::R, mapGLChannelType(dataType, true));
448 case GL_RGBA_INTEGER: return TextureFormat(TextureFormat::RGBA, mapGLChannelType(dataType, false));
449 case GL_RGB_INTEGER: return TextureFormat(TextureFormat::RGB, mapGLChannelType(dataType, false));
450 case GL_RG_INTEGER: return TextureFormat(TextureFormat::RG, mapGLChannelType(dataType, false));
451 case GL_RED_INTEGER: return TextureFormat(TextureFormat::R, mapGLChannelType(dataType, false));
453 case GL_DEPTH_COMPONENT: return TextureFormat(TextureFormat::D, mapGLChannelType(dataType, true));
454 case GL_DEPTH_STENCIL: return TextureFormat(TextureFormat::DS, mapGLChannelType(dataType, true));
474 case GL_RGB5_A1: return TextureFormat(TextureFormat::RGBA, TextureFormat::UNORM_SHORT_5551);
475 case GL_RGBA4: return TextureFormat(TextureFormat::RGBA, TextureFormat::UNORM_SHORT_4444);
476 case GL_RGB565: return TextureFormat(TextureFormat::RGB, TextureFormat::UNORM_SHORT_565);
477 case GL_DEPTH_COMPONENT16: return TextureFormat(TextureFormat::D, TextureFormat::UNORM_INT16);
478 case GL_STENCIL_INDEX8: return TextureFormat(TextureFormat::S, TextureFormat::UNSIGNED_INT8);
480 case GL_RGBA32F: return TextureFormat(TextureFormat::RGBA, TextureFormat::FLOAT);
481 case GL_RGBA32I: return TextureFormat(TextureFormat::RGBA, TextureFormat::SIGNED_INT32);
482 case GL_RGBA32UI: return TextureFormat(TextureFormat::RGBA, TextureFormat::UNSIGNED_INT32);
483 case GL_RGBA16: return TextureFormat(TextureFormat::RGBA, TextureFormat::UNORM_INT16);
484 case GL_RGBA16_SNORM: return TextureFormat(TextureFormat::RGBA, TextureFormat::SNORM_INT16);
485 case GL_RGBA16F: return TextureFormat(TextureFormat::RGBA, TextureFormat::HALF_FLOAT);
486 case GL_RGBA16I: return TextureFormat(TextureFormat::RGBA, TextureFormat::SIGNED_INT16);
487 case GL_RGBA16UI: return TextureFormat(TextureFormat::RGBA, TextureFormat::UNSIGNED_INT16);
488 case GL_RGBA8: return TextureFormat(TextureFormat::RGBA, TextureFormat::UNORM_INT8);
489 case GL_RGBA8I: return TextureFormat(TextureFormat::RGBA, TextureFormat::SIGNED_INT8);
490 case GL_RGBA8UI: return TextureFormat(TextureFormat::RGBA, TextureFormat::UNSIGNED_INT8);
491 case GL_SRGB8_ALPHA8: return TextureFormat(TextureFormat::sRGBA, TextureFormat::UNORM_INT8);
492 case GL_RGB10_A2: return TextureFormat(TextureFormat::RGBA, TextureFormat::UNORM_INT_1010102_REV);
493 case GL_RGB10_A2UI: return TextureFormat(TextureFormat::RGBA, TextureFormat::UNSIGNED_INT_1010102_REV);
494 case GL_RGBA8_SNORM: return TextureFormat(TextureFormat::RGBA, TextureFormat::SNORM_INT8);
496 case GL_RGB8: return TextureFormat(TextureFormat::RGB, TextureFormat::UNORM_INT8);
497 case GL_R11F_G11F_B10F: return TextureFormat(TextureFormat::RGB, TextureFormat::UNSIGNED_INT_11F_11F_10F_REV);
498 case GL_RGB32F: return TextureFormat(TextureFormat::RGB, TextureFormat::FLOAT);
499 case GL_RGB32I: return TextureFormat(TextureFormat::RGB, TextureFormat::SIGNED_INT32);
500 case GL_RGB32UI: return TextureFormat(TextureFormat::RGB, TextureFormat::UNSIGNED_INT32);
501 case GL_RGB16: return TextureFormat(TextureFormat::RGB, TextureFormat::UNORM_INT16);
502 case GL_RGB16_SNORM: return TextureFormat(TextureFormat::RGB, TextureFormat::SNORM_INT16);
503 case GL_RGB16F: return TextureFormat(TextureFormat::RGB, TextureFormat::HALF_FLOAT);
504 case GL_RGB16I: return TextureFormat(TextureFormat::RGB, TextureFormat::SIGNED_INT16);
505 case GL_RGB16UI: return TextureFormat(TextureFormat::RGB, TextureFormat::UNSIGNED_INT16);
506 case GL_RGB8_SNORM: return TextureFormat(TextureFormat::RGB, TextureFormat::SNORM_INT8);
507 case GL_RGB8I: return TextureFormat(TextureFormat::RGB, TextureFormat::SIGNED_INT8);
508 case GL_RGB8UI: return TextureFormat(TextureFormat::RGB, TextureFormat::UNSIGNED_INT8);
509 case GL_SRGB8: return TextureFormat(TextureFormat::sRGB, TextureFormat::UNORM_INT8);
510 case GL_RGB9_E5: return TextureFormat(TextureFormat::RGB, TextureFormat::UNSIGNED_INT_999_E5_REV);
511 case GL_RGB10: return TextureFormat(TextureFormat::RGB, TextureFormat::UNORM_INT_1010102_REV);
513 case GL_RG32F: return TextureFormat(TextureFormat::RG, TextureFormat::FLOAT);
514 case GL_RG32I: return TextureFormat(TextureFormat::RG, TextureFormat::SIGNED_INT32);
515 case GL_RG32UI: return TextureFormat(TextureFormat::RG, TextureFormat::UNSIGNED_INT32);
516 case GL_RG16: return TextureFormat(TextureFormat::RG, TextureFormat::UNORM_INT16);
517 case GL_RG16_SNORM: return TextureFormat(TextureFormat::RG, TextureFormat::SNORM_INT16);
518 case GL_RG16F: return TextureFormat(TextureFormat::RG, TextureFormat::HALF_FLOAT);
519 case GL_RG16I: return TextureFormat(TextureFormat::RG, TextureFormat::SIGNED_INT16);
520 case GL_RG16UI: return TextureFormat(TextureFormat::RG, TextureFormat::UNSIGNED_INT16);
521 case GL_RG8: return TextureFormat(TextureFormat::RG, TextureFormat::UNORM_INT8);
522 case GL_RG8I: return TextureFormat(TextureFormat::RG, TextureFormat::SIGNED_INT8);
523 case GL_RG8UI: return TextureFormat(TextureFormat::RG, TextureFormat::UNSIGNED_INT8);
524 case GL_RG8_SNORM: return TextureFormat(TextureFormat::RG, TextureFormat::SNORM_INT8);
525 case GL_SRG8_EXT: return TextureFormat(TextureFormat::sRG, TextureFormat::UNORM_INT8);
527 case GL_R32F: return TextureFormat(TextureFormat::R, TextureFormat::FLOAT);
528 case GL_R32I: return TextureFormat(TextureFormat::R, TextureFormat::SIGNED_INT32);
529 case GL_R32UI: return TextureFormat(TextureFormat::R, TextureFormat::UNSIGNED_INT32);
530 case GL_R16: return TextureFormat(TextureFormat::R, TextureFormat::UNORM_INT16);
531 case GL_R16_SNORM: return TextureFormat(TextureFormat::R, TextureFormat::SNORM_INT16);
532 case GL_R16F: return TextureFormat(TextureFormat::R, TextureFormat::HALF_FLOAT);
533 case GL_R16I: return TextureFormat(TextureFormat::R, TextureFormat::SIGNED_INT16);
534 case GL_R16UI: return TextureFormat(TextureFormat::R, TextureFormat::UNSIGNED_INT16);
535 case GL_R8: return TextureFormat(TextureFormat::R, TextureFormat::UNORM_INT8);
536 case GL_R8I: return TextureFormat(TextureFormat::R, TextureFormat::SIGNED_INT8);
537 case GL_R8UI: return TextureFormat(TextureFormat::R, TextureFormat::UNSIGNED_INT8);
538 case GL_R8_SNORM: return TextureFormat(TextureFormat::R, TextureFormat::SNORM_INT8);
539 case GL_SR8_EXT: return TextureFormat(TextureFormat::sR, TextureFormat::UNORM_INT8);
541 case GL_DEPTH_COMPONENT32F: return TextureFormat(TextureFormat::D, TextureFormat::FLOAT);
542 case GL_DEPTH_COMPONENT24: return TextureFormat(TextureFormat::D, TextureFormat::UNSIGNED_INT_24_8);
543 case GL_DEPTH_COMPONENT32: return TextureFormat(TextureFormat::D, TextureFormat::UNSIGNED_INT32);
544 case GL_DEPTH32F_STENCIL8: return TextureFormat(TextureFormat::DS, TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV);
545 case GL_DEPTH24_STENCIL8: return TextureFormat(TextureFormat::DS, TextureFormat::UNSIGNED_INT_24_8);
556 case GL_R8:
557 case GL_R8_SNORM:
558 case GL_RG8:
559 case GL_RG8_SNORM:
560 case GL_RGB8:
561 case GL_RGB8_SNORM:
562 case GL_RGB565:
563 case GL_RGBA4:
564 case GL_RGB5_A1:
565 case GL_RGBA8:
566 case GL_RGBA8_SNORM:
567 case GL_RGB10_A2:
568 case GL_SR8_EXT:
569 case GL_SRG8_EXT:
570 case GL_SRGB8:
571 case GL_SRGB8_ALPHA8:
572 case GL_R16F:
573 case GL_RG16F:
574 case GL_RGB16F:
575 case GL_RGBA16F:
576 case GL_R11F_G11F_B10F:
577 case GL_RGB9_E5:
580 case GL_RGB10_A2UI:
581 case GL_R32F:
582 case GL_RG32F:
583 case GL_RGB32F:
584 case GL_RGBA32F:
585 case GL_R8I:
586 case GL_R8UI:
587 case GL_R16I:
588 case GL_R16UI:
589 case GL_R32I:
590 case GL_R32UI:
591 case GL_RG8I:
592 case GL_RG8UI:
593 case GL_RG16I:
594 case GL_RG16UI:
595 case GL_RG32I:
596 case GL_RG32UI:
597 case GL_RGB8I:
598 case GL_RGB8UI:
599 case GL_RGB16I:
600 case GL_RGB16UI:
601 case GL_RGB32I:
602 case GL_RGB32UI:
603 case GL_RGBA8I:
604 case GL_RGBA8UI:
605 case GL_RGBA16I:
606 case GL_RGBA16UI:
607 case GL_RGBA32I:
608 case GL_RGBA32UI:
621 case GL_CLAMP_TO_EDGE: return tcu::Sampler::CLAMP_TO_EDGE;
622 case GL_CLAMP_TO_BORDER: return tcu::Sampler::CLAMP_TO_BORDER;
623 case GL_REPEAT: return tcu::Sampler::REPEAT_GL;
624 case GL_MIRRORED_REPEAT: return tcu::Sampler::MIRRORED_REPEAT_GL;
634 case GL_NEAREST: return tcu::Sampler::NEAREST;
635 case GL_LINEAR: return tcu::Sampler::LINEAR;
636 case GL_NEAREST_MIPMAP_NEAREST: return tcu::Sampler::NEAREST_MIPMAP_NEAREST;
637 case GL_NEAREST_MIPMAP_LINEAR: return tcu::Sampler::NEAREST_MIPMAP_LINEAR;
638 case GL_LINEAR_MIPMAP_NEAREST: return tcu::Sampler::LINEAR_MIPMAP_NEAREST;
639 case GL_LINEAR_MIPMAP_LINEAR: return tcu::Sampler::LINEAR_MIPMAP_LINEAR;
649 case GL_NEAREST: return tcu::Sampler::NEAREST;
650 case GL_LINEAR: return tcu::Sampler::LINEAR;
723 case GL_LESS: return tcu::Sampler::COMPAREMODE_LESS;
724 case GL_LEQUAL: return tcu::Sampler::COMPAREMODE_LESS_OR_EQUAL;
725 case GL_GREATER: return tcu::Sampler::COMPAREMODE_GREATER;
726 case GL_GEQUAL: return tcu::Sampler::COMPAREMODE_GREATER_OR_EQUAL;
727 case GL_EQUAL: return tcu::Sampler::COMPAREMODE_EQUAL;
728 case GL_NOTEQUAL: return tcu::Sampler::COMPAREMODE_NOT_EQUAL;
729 case GL_ALWAYS: return tcu::Sampler::COMPAREMODE_ALWAYS;
730 case GL_NEVER: return tcu::Sampler::COMPAREMODE_NEVER;
749 case tcu::Sampler::CLAMP_TO_EDGE: return GL_CLAMP_TO_EDGE;
750 case tcu::Sampler::CLAMP_TO_BORDER: return GL_CLAMP_TO_BORDER;
751 case tcu::Sampler::REPEAT_GL: return GL_REPEAT;
752 case tcu::Sampler::MIRRORED_REPEAT_GL: return GL_MIRRORED_REPEAT;
771 case tcu::Sampler::NEAREST: return GL_NEAREST;
772 case tcu::Sampler::LINEAR: return GL_LINEAR;
773 case tcu::Sampler::NEAREST_MIPMAP_NEAREST: return GL_NEAREST_MIPMAP_NEAREST;
774 case tcu::Sampler::NEAREST_MIPMAP_LINEAR: return GL_NEAREST_MIPMAP_LINEAR;
775 case tcu::Sampler::LINEAR_MIPMAP_NEAREST: return GL_LINEAR_MIPMAP_NEAREST;
776 case tcu::Sampler::LINEAR_MIPMAP_LINEAR: return GL_LINEAR_MIPMAP_LINEAR;
795 case tcu::Sampler::COMPAREMODE_NONE: return GL_NONE;
796 case tcu::Sampler::COMPAREMODE_LESS: return GL_LESS;
797 case tcu::Sampler::COMPAREMODE_LESS_OR_EQUAL: return GL_LEQUAL;
798 case tcu::Sampler::COMPAREMODE_GREATER: return GL_GREATER;
799 case tcu::Sampler::COMPAREMODE_GREATER_OR_EQUAL: return GL_GEQUAL;
800 case tcu::Sampler::COMPAREMODE_EQUAL: return GL_EQUAL;
801 case tcu::Sampler::COMPAREMODE_NOT_EQUAL: return GL_NOTEQUAL;
802 case tcu::Sampler::COMPAREMODE_ALWAYS: return GL_ALWAYS;
803 case tcu::Sampler::COMPAREMODE_NEVER: return GL_NEVER;
822 case tcu::CUBEFACE_NEGATIVE_X: return GL_TEXTURE_CUBE_MAP_NEGATIVE_X;
823 case tcu::CUBEFACE_POSITIVE_X: return GL_TEXTURE_CUBE_MAP_POSITIVE_X;
824 case tcu::CUBEFACE_NEGATIVE_Y: return GL_TEXTURE_CUBE_MAP_NEGATIVE_Y;
825 case tcu::CUBEFACE_POSITIVE_Y: return GL_TEXTURE_CUBE_MAP_POSITIVE_Y;
826 case tcu::CUBEFACE_NEGATIVE_Z: return GL_TEXTURE_CUBE_MAP_NEGATIVE_Z;
827 case tcu::CUBEFACE_POSITIVE_Z: return GL_TEXTURE_CUBE_MAP_POSITIVE_Z;
837 case GL_TEXTURE_CUBE_MAP_NEGATIVE_X: return tcu::CUBEFACE_NEGATIVE_X;
838 case GL_TEXTURE_CUBE_MAP_POSITIVE_X: return tcu::CUBEFACE_POSITIVE_X;
839 case GL_TEXTURE_CUBE_MAP_NEGATIVE_Y: return tcu::CUBEFACE_NEGATIVE_Y;
840 case GL_TEXTURE_CUBE_MAP_POSITIVE_Y: return tcu::CUBEFACE_POSITIVE_Y;
841 case GL_TEXTURE_CUBE_MAP_NEGATIVE_Z: return tcu::CUBEFACE_NEGATIVE_Z;
842 case GL_TEXTURE_CUBE_MAP_POSITIVE_Z: return tcu::CUBEFACE_POSITIVE_Z;
868 case tcu::TEXTURECHANNELCLASS_FLOATING_POINT:
869 case tcu::TEXTURECHANNELCLASS_SIGNED_FIXED_POINT:
870 case tcu::TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT:
873 case tcu::TEXTURECHANNELCLASS_SIGNED_INTEGER:
876 case tcu::TEXTURECHANNELCLASS_UNSIGNED_INTEGER:
904 case tcu::TEXTURECHANNELCLASS_FLOATING_POINT:
905 case tcu::TEXTURECHANNELCLASS_SIGNED_FIXED_POINT:
906 case tcu::TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT:
909 case tcu::TEXTURECHANNELCLASS_SIGNED_INTEGER:
912 case tcu::TEXTURECHANNELCLASS_UNSIGNED_INTEGER:
940 case tcu::TEXTURECHANNELCLASS_FLOATING_POINT:
941 case tcu::TEXTURECHANNELCLASS_SIGNED_FIXED_POINT:
942 case tcu::TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT:
945 case tcu::TEXTURECHANNELCLASS_SIGNED_INTEGER:
948 case tcu::TEXTURECHANNELCLASS_UNSIGNED_INTEGER:
976 case tcu::TEXTURECHANNELCLASS_FLOATING_POINT:
977 case tcu::TEXTURECHANNELCLASS_SIGNED_FIXED_POINT:
978 case tcu::TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT:
981 case tcu::TEXTURECHANNELCLASS_SIGNED_INTEGER:
984 case tcu::TEXTURECHANNELCLASS_UNSIGNED_INTEGER:
1012 case tcu::TEXTURECHANNELCLASS_FLOATING_POINT:
1013 case tcu::TEXTURECHANNELCLASS_SIGNED_FIXED_POINT:
1014 case tcu::TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT:
1017 case tcu::TEXTURECHANNELCLASS_SIGNED_INTEGER:
1020 case tcu::TEXTURECHANNELCLASS_UNSIGNED_INTEGER:
1048 case tcu::TEXTURECHANNELCLASS_FLOATING_POINT:
1049 case tcu::TEXTURECHANNELCLASS_SIGNED_FIXED_POINT:
1050 case tcu::TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT:
1053 case tcu::TEXTURECHANNELCLASS_SIGNED_INTEGER:
1056 case tcu::TEXTURECHANNELCLASS_UNSIGNED_INTEGER:
1076 case GL_RGBA32I:
1077 case GL_RGBA32UI:
1078 case GL_RGBA16I:
1079 case GL_RGBA16UI:
1080 case GL_RGBA8:
1081 case GL_RGBA8I:
1082 case GL_RGBA8UI:
1083 case GL_SRGB8_ALPHA8:
1084 case GL_RGB10_A2:
1085 case GL_RGB10_A2UI:
1086 case GL_RGBA4:
1087 case GL_RGB5_A1:
1088 case GL_RGB8:
1089 case GL_RGB565:
1090 case GL_RG32I:
1091 case GL_RG32UI:
1092 case GL_RG16I:
1093 case GL_RG16UI:
1094 case GL_RG8:
1095 case GL_RG8I:
1096 case GL_RG8UI:
1097 case GL_R32I:
1098 case GL_R32UI:
1099 case GL_R16I:
1100 case GL_R16UI:
1101 case GL_R8:
1102 case GL_R8I:
1103 case GL_R8UI:
1107 case GL_RGBA32F:
1108 case GL_R11F_G11F_B10F:
1109 case GL_RG32F:
1110 case GL_R32F:
1117 case GL_RGBA16F:
1118 case GL_RG16F:
1119 case GL_R16F:
1127 case GL_DEPTH_COMPONENT32F:
1128 case
1129 case GL_DEPTH_COMPONENT16:
1133 case GL_DEPTH32F_STENCIL8:
1134 case GL_DEPTH24_STENCIL8:
1138 case GL_STENCIL_INDEX8: