Home | History | Annotate | Download | only in main

Lines Matching refs:formats

36 #include "formats.h"
162 * formats that are supported.
164 * Some formats are \b not returned by this function. The
165 * \c GL_COMPRESSED_TEXTURE_FORMATS query only returns formats that are
172 * GL_COMPRESSED_TEXTURE_FORMATS queries return the RGTC formats?
178 * corresponding to formats suitable for general-purpose usage.
179 * The renderer will not enumerate formats with restrictions that
186 * Applications that seek to use the RGTC formats should do so
197 * "22) Should the new COMPRESSED_SRGB_* formats be listed in an
200 * RESOLVED: No. Section 3.8.1 says formats listed by
203 * blue for these sRGB compressed formats makes them not really
209 * GL_COMPRESSED_TEXTURE_FORMATS queries return the LATC formats?
215 * corresponding to formats suitable for general-purpose usage.
216 * The renderer will not enumerate formats with restrictions that
229 * limits itself to true linear RGB or RGBA formats, specifically
230 * not including EXT_texture_sRGB's sRGB S3TC compressed formats.
232 * Adding luminance and luminance-alpha texture formats (and
234 * formats!) invites potential comptaibility problems with old
236 * unlikely to expect non-RGB or non-RGBA formats to be advertised
240 * Applications that seek to use the LATC formats should do so
247 * formats added by this extension are luminance-alpha formats, it is
250 * expose the 3dc formats through this mechanism.
259 * \param formats the resulting format list (may be NULL).
261 * \return number of formats.
264 _mesa_get_compressed_formats(struct gl_context *ctx, GLint *formats)
269 if (formats) {
270 formats[n++] = GL_COMPRESSED_RGB_FXT1_3DFX;
271 formats[n++] = GL_COMPRESSED_RGBA_FXT1_3DFX;
279 if (formats) {
280 formats[n++] = GL_COMPRESSED_RGB_S3TC_DXT1_EXT;
281 formats[n++] = GL_COMPRESSED_RGBA_S3TC_DXT3_EXT;
282 formats[n++] = GL_COMPRESSED_RGBA_S3TC_DXT5_EXT;
293 * formats that it could ask the driver to compress with some
302 * formats that the driver can receive from the application. It
303 * is the *complete* list of formats. The
318 if (formats) {
319 formats[n++] = GL_COMPRESSED_RGBA_S3TC_DXT1_EXT;
335 if (formats) {
336 formats[n++] = GL_ETC1_RGB8_OES;
344 if (formats) {
345 formats[n++] = GL_PALETTE4_RGB8_OES;
346 formats[n++] = GL_PALETTE4_RGBA8_OES;
347 formats[n++] = GL_PALETTE4_R5_G6_B5_OES;
348 formats[n++] = GL_PALETTE4_RGBA4_OES;
349 formats[n++] = GL_PALETTE4_RGB5_A1_OES;
350 formats[n++] = GL_PALETTE8_RGB8_OES;
351 formats[n++] = GL_PALETTE8_RGBA8_OES;
352 formats[n++] = GL_PALETTE8_R5_G6_B5_OES;
353 formats[n++] = GL_PALETTE8_RGBA4_OES;
354 formats[n++] = GL_PALETTE8_RGB5_A1_OES;
362 if (formats) {
363 formats[n++] = GL_COMPRESSED_RGB8_ETC2;
364 formats[n++] = GL_COMPRESSED_RGBA8_ETC2_EAC;
365 formats[n++] = GL_COMPRESSED_R11_EAC;
366 formats[n++] = GL_COMPRESSED_RG11_EAC;
367 formats[n++] = GL_COMPRESSED_SIGNED_R11_EAC;
368 formats[n++] = GL_COMPRESSED_SIGNED_RG11_EAC;
369 formats[n++] = GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2;
376 if (formats) {
377 formats[n++] = GL_COMPRESSED_SRGB8_ETC2;
378 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC;
379 formats[n++] = GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2;
393 * Specification, subsection Encoding of Special Internal Formats).
408 * query returns the set of supported specific compressed formats.
412 if (formats) {
413 formats[n++] = GL_COMPRESSED_RGBA_ASTC_4x4_KHR;
414 formats[n++] = GL_COMPRESSED_RGBA_ASTC_5x4_KHR;
415 formats[n++] = GL_COMPRESSED_RGBA_ASTC_5x5_KHR;
416 formats[n++] = GL_COMPRESSED_RGBA_ASTC_6x5_KHR;
417 formats[n++] = GL_COMPRESSED_RGBA_ASTC_6x6_KHR;
418 formats[n++] = GL_COMPRESSED_RGBA_ASTC_8x5_KHR;
419 formats[n++] = GL_COMPRESSED_RGBA_ASTC_8x6_KHR;
420 formats[n++] = GL_COMPRESSED_RGBA_ASTC_8x8_KHR;
421 formats[n++] = GL_COMPRESSED_RGBA_ASTC_10x5_KHR;
422 formats[n++] = GL_COMPRESSED_RGBA_ASTC_10x6_KHR;
423 formats[n++] = GL_COMPRESSED_RGBA_ASTC_10x8_KHR;
424 formats[n++] = GL_COMPRESSED_RGBA_ASTC_10x10_KHR;
425 formats[n++] = GL_COMPRESSED_RGBA_ASTC_12x10_KHR;
426 formats[n++] = GL_COMPRESSED_RGBA_ASTC_12x12_KHR;
427 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR;
428 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR;
429 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR;
430 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR;
431 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR;
432 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR;
433 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR;
434 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR;
435 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR;
436 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR;
437 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR;
438 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR;
439 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR;
440 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR;
449 if (formats) {
450 formats[n++] = GL_COMPRESSED_RGBA_ASTC_3x3x3_OES;
451 formats[n++] = GL_COMPRESSED_RGBA_ASTC_4x3x3_OES;
452 formats[n++] = GL_COMPRESSED_RGBA_ASTC_4x4x3_OES;
453 formats[n++] = GL_COMPRESSED_RGBA_ASTC_4x4x4_OES;
454 formats[n++] = GL_COMPRESSED_RGBA_ASTC_5x4x4_OES;
455 formats[n++] = GL_COMPRESSED_RGBA_ASTC_5x5x4_OES;
456 formats[n++] = GL_COMPRESSED_RGBA_ASTC_5x5x5_OES;
457 formats[n++] = GL_COMPRESSED_RGBA_ASTC_6x5x5_OES;
458 formats[n++] = GL_COMPRESSED_RGBA_ASTC_6x6x5_OES;
459 formats[n++] = GL_COMPRESSED_RGBA_ASTC_6x6x6_OES;
460 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_3x3x3_OES;
461 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x3x3_OES;
462 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4x3_OES;
463 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4x4_OES;
464 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4x4_OES;
465 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5x4_OES;
466 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5x5_OES;
467 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5x5_OES;
468 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6x5_OES;
469 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6x6_OES;