Lines Matching refs:formats

36 #include "formats.h"
165 * formats that are supported.
167 * Some formats are \b not returned by this function. The
168 * \c GL_COMPRESSED_TEXTURE_FORMATS query only returns formats that are
175 * GL_COMPRESSED_TEXTURE_FORMATS queries return the RGTC formats?
181 * corresponding to formats suitable for general-purpose usage.
182 * The renderer will not enumerate formats with restrictions that
189 * Applications that seek to use the RGTC formats should do so
200 * "22) Should the new COMPRESSED_SRGB_* formats be listed in an
203 * RESOLVED: No. Section 3.8.1 says formats listed by
206 * blue for these sRGB compressed formats makes them not really
212 * GL_COMPRESSED_TEXTURE_FORMATS queries return the LATC formats?
218 * corresponding to formats suitable for general-purpose usage.
219 * The renderer will not enumerate formats with restrictions that
232 * limits itself to true linear RGB or RGBA formats, specifically
233 * not including EXT_texture_sRGB's sRGB S3TC compressed formats.
235 * Adding luminance and luminance-alpha texture formats (and
237 * formats!) invites potential comptaibility problems with old
239 * unlikely to expect non-RGB or non-RGBA formats to be advertised
243 * Applications that seek to use the LATC formats should do so
250 * formats added by this extension are luminance-alpha formats, it is
253 * expose the 3dc formats through this mechanism.
262 * \param formats the resulting format list (may be NULL).
264 * \return number of formats.
267 _mesa_get_compressed_formats(struct gl_context *ctx, GLint *formats)
272 if (!formats) {
273 formats = discard_formats;
278 formats[n++] = GL_COMPRESSED_RGB_FXT1_3DFX;
279 formats[n++] = GL_COMPRESSED_RGBA_FXT1_3DFX;
283 formats[n++] = GL_COMPRESSED_RGB_S3TC_DXT1_EXT;
284 formats[n++] = GL_COMPRESSED_RGBA_S3TC_DXT3_EXT;
285 formats[n++] = GL_COMPRESSED_RGBA_S3TC_DXT5_EXT;
292 * formats that it could ask the driver to compress with some
301 * formats that the driver can receive from the application. It
302 * is the *complete* list of formats. The
317 formats[n++] = GL_COMPRESSED_RGBA_S3TC_DXT1_EXT;
330 formats[n++] = GL_ETC1_RGB8_OES;
335 formats[n++] = GL_COMPRESSED_RGBA_BPTC_UNORM;
336 formats[n++] = GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM;
337 formats[n++] = GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT;
338 formats[n++] = GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT;
344 formats[n++] = GL_COMPRESSED_RED_RGTC1_EXT;
345 formats[n++] = GL_COMPRESSED_SIGNED_RED_RGTC1_EXT;
346 formats[n++] = GL_COMPRESSED_RED_GREEN_RGTC2_EXT;
347 formats[n++] = GL_COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT;
351 formats[n++] = GL_PALETTE4_RGB8_OES;
352 formats[n++] = GL_PALETTE4_RGBA8_OES;
353 formats[n++] = GL_PALETTE4_R5_G6_B5_OES;
354 formats[n++] = GL_PALETTE4_RGBA4_OES;
355 formats[n++] = GL_PALETTE4_RGB5_A1_OES;
356 formats[n++] = GL_PALETTE8_RGB8_OES;
357 formats[n++] = GL_PALETTE8_RGBA8_OES;
358 formats[n++] = GL_PALETTE8_R5_G6_B5_OES;
359 formats[n++] = GL_PALETTE8_RGBA4_OES;
360 formats[n++] = GL_PALETTE8_RGB5_A1_OES;
364 formats[n++] = GL_COMPRESSED_RGB8_ETC2;
365 formats[n++] = GL_COMPRESSED_RGBA8_ETC2_EAC;
366 formats[n++] = GL_COMPRESSED_R11_EAC;
367 formats[n++] = GL_COMPRESSED_RG11_EAC;
368 formats[n++] = GL_COMPRESSED_SIGNED_R11_EAC;
369 formats[n++] = GL_COMPRESSED_SIGNED_RG11_EAC;
370 formats[n++] = GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2;
374 formats[n++] = GL_COMPRESSED_SRGB8_ETC2;
375 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC;
376 formats[n++] = GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2;
403 * compressed formats.
407 formats[n++] = GL_COMPRESSED_RGBA_ASTC_4x4_KHR;
408 formats[n++] = GL_COMPRESSED_RGBA_ASTC_5x4_KHR;
409 formats[n++] = GL_COMPRESSED_RGBA_ASTC_5x5_KHR;
410 formats[n++] = GL_COMPRESSED_RGBA_ASTC_6x5_KHR;
411 formats[n++] = GL_COMPRESSED_RGBA_ASTC_6x6_KHR;
412 formats[n++] = GL_COMPRESSED_RGBA_ASTC_8x5_KHR;
413 formats[n++] = GL_COMPRESSED_RGBA_ASTC_8x6_KHR;
414 formats[n++] = GL_COMPRESSED_RGBA_ASTC_8x8_KHR;
415 formats[n++] = GL_COMPRESSED_RGBA_ASTC_10x5_KHR;
416 formats[n++] = GL_COMPRESSED_RGBA_ASTC_10x6_KHR;
417 formats[n++] = GL_COMPRESSED_RGBA_ASTC_10x8_KHR;
418 formats[n++] = GL_COMPRESSED_RGBA_ASTC_10x10_KHR;
419 formats[n++] = GL_COMPRESSED_RGBA_ASTC_12x10_KHR;
420 formats[n++] = GL_COMPRESSED_RGBA_ASTC_12x12_KHR;
421 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR;
422 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR;
423 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR;
424 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR;
425 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR;
426 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR;
427 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR;
428 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR;
429 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR;
430 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR;
431 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR;
432 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR;
433 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR;
434 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR;
439 formats[n++] = GL_COMPRESSED_RGBA_ASTC_3x3x3_OES;
440 formats[n++] = GL_COMPRESSED_RGBA_ASTC_4x3x3_OES;
441 formats[n++] = GL_COMPRESSED_RGBA_ASTC_4x4x3_OES;
442 formats[n++] = GL_COMPRESSED_RGBA_ASTC_4x4x4_OES;
443 formats[n++] = GL_COMPRESSED_RGBA_ASTC_5x4x4_OES;
444 formats[n++] = GL_COMPRESSED_RGBA_ASTC_5x5x4_OES;
445 formats[n++] = GL_COMPRESSED_RGBA_ASTC_5x5x5_OES;
446 formats[n++] = GL_COMPRESSED_RGBA_ASTC_6x5x5_OES;
447 formats[n++] = GL_COMPRESSED_RGBA_ASTC_6x6x5_OES;
448 formats[n++] = GL_COMPRESSED_RGBA_ASTC_6x6x6_OES;
449 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_3x3x3_OES;
450 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x3x3_OES;
451 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4x3_OES;
452 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4x4_OES;
453 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4x4_OES;
454 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5x4_OES;
455 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5x5_OES;
456 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5x5_OES;
457 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6x5_OES;
458 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6x6_OES;
470 formats[n++] = GL_ATC_RGB_AMD;
471 formats[n++] = GL_ATC_RGBA_EXPLICIT_ALPHA_AMD;
472 formats[n++] = GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD;