Lines Matching full: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) in _mesa_get_compressed_formats() argument
269 if (formats) { in _mesa_get_compressed_formats()
270 formats[n++] = GL_COMPRESSED_RGB_FXT1_3DFX; in _mesa_get_compressed_formats()
271 formats[n++] = GL_COMPRESSED_RGBA_FXT1_3DFX; in _mesa_get_compressed_formats()
279 if (formats) { in _mesa_get_compressed_formats()
280 formats[n++] = GL_COMPRESSED_RGB_S3TC_DXT1_EXT; in _mesa_get_compressed_formats()
281 formats[n++] = GL_COMPRESSED_RGBA_S3TC_DXT3_EXT; in _mesa_get_compressed_formats()
282 formats[n++] = GL_COMPRESSED_RGBA_S3TC_DXT5_EXT; in _mesa_get_compressed_formats()
293 * formats that it could ask the driver to compress with some in _mesa_get_compressed_formats()
302 * formats that the driver can receive from the application. It in _mesa_get_compressed_formats()
303 * is the *complete* list of formats. The in _mesa_get_compressed_formats()
318 if (formats) { in _mesa_get_compressed_formats()
319 formats[n++] = GL_COMPRESSED_RGBA_S3TC_DXT1_EXT; in _mesa_get_compressed_formats()
335 if (formats) { in _mesa_get_compressed_formats()
336 formats[n++] = GL_ETC1_RGB8_OES; in _mesa_get_compressed_formats()
344 if (formats) { in _mesa_get_compressed_formats()
345 formats[n++] = GL_PALETTE4_RGB8_OES; in _mesa_get_compressed_formats()
346 formats[n++] = GL_PALETTE4_RGBA8_OES; in _mesa_get_compressed_formats()
347 formats[n++] = GL_PALETTE4_R5_G6_B5_OES; in _mesa_get_compressed_formats()
348 formats[n++] = GL_PALETTE4_RGBA4_OES; in _mesa_get_compressed_formats()
349 formats[n++] = GL_PALETTE4_RGB5_A1_OES; in _mesa_get_compressed_formats()
350 formats[n++] = GL_PALETTE8_RGB8_OES; in _mesa_get_compressed_formats()
351 formats[n++] = GL_PALETTE8_RGBA8_OES; in _mesa_get_compressed_formats()
352 formats[n++] = GL_PALETTE8_R5_G6_B5_OES; in _mesa_get_compressed_formats()
353 formats[n++] = GL_PALETTE8_RGBA4_OES; in _mesa_get_compressed_formats()
354 formats[n++] = GL_PALETTE8_RGB5_A1_OES; in _mesa_get_compressed_formats()
362 if (formats) { in _mesa_get_compressed_formats()
363 formats[n++] = GL_COMPRESSED_RGB8_ETC2; in _mesa_get_compressed_formats()
364 formats[n++] = GL_COMPRESSED_RGBA8_ETC2_EAC; in _mesa_get_compressed_formats()
365 formats[n++] = GL_COMPRESSED_R11_EAC; in _mesa_get_compressed_formats()
366 formats[n++] = GL_COMPRESSED_RG11_EAC; in _mesa_get_compressed_formats()
367 formats[n++] = GL_COMPRESSED_SIGNED_R11_EAC; in _mesa_get_compressed_formats()
368 formats[n++] = GL_COMPRESSED_SIGNED_RG11_EAC; in _mesa_get_compressed_formats()
369 formats[n++] = GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2; in _mesa_get_compressed_formats()
376 if (formats) { in _mesa_get_compressed_formats()
377 formats[n++] = GL_COMPRESSED_SRGB8_ETC2; in _mesa_get_compressed_formats()
378 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC; in _mesa_get_compressed_formats()
379 formats[n++] = GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2; in _mesa_get_compressed_formats()
393 * Specification, subsection Encoding of Special Internal Formats). in _mesa_get_compressed_formats()
408 * query returns the set of supported specific compressed formats. in _mesa_get_compressed_formats()
412 if (formats) { in _mesa_get_compressed_formats()
413 formats[n++] = GL_COMPRESSED_RGBA_ASTC_4x4_KHR; in _mesa_get_compressed_formats()
414 formats[n++] = GL_COMPRESSED_RGBA_ASTC_5x4_KHR; in _mesa_get_compressed_formats()
415 formats[n++] = GL_COMPRESSED_RGBA_ASTC_5x5_KHR; in _mesa_get_compressed_formats()
416 formats[n++] = GL_COMPRESSED_RGBA_ASTC_6x5_KHR; in _mesa_get_compressed_formats()
417 formats[n++] = GL_COMPRESSED_RGBA_ASTC_6x6_KHR; in _mesa_get_compressed_formats()
418 formats[n++] = GL_COMPRESSED_RGBA_ASTC_8x5_KHR; in _mesa_get_compressed_formats()
419 formats[n++] = GL_COMPRESSED_RGBA_ASTC_8x6_KHR; in _mesa_get_compressed_formats()
420 formats[n++] = GL_COMPRESSED_RGBA_ASTC_8x8_KHR; in _mesa_get_compressed_formats()
421 formats[n++] = GL_COMPRESSED_RGBA_ASTC_10x5_KHR; in _mesa_get_compressed_formats()
422 formats[n++] = GL_COMPRESSED_RGBA_ASTC_10x6_KHR; in _mesa_get_compressed_formats()
423 formats[n++] = GL_COMPRESSED_RGBA_ASTC_10x8_KHR; in _mesa_get_compressed_formats()
424 formats[n++] = GL_COMPRESSED_RGBA_ASTC_10x10_KHR; in _mesa_get_compressed_formats()
425 formats[n++] = GL_COMPRESSED_RGBA_ASTC_12x10_KHR; in _mesa_get_compressed_formats()
426 formats[n++] = GL_COMPRESSED_RGBA_ASTC_12x12_KHR; in _mesa_get_compressed_formats()
427 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR; in _mesa_get_compressed_formats()
428 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR; in _mesa_get_compressed_formats()
429 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR; in _mesa_get_compressed_formats()
430 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR; in _mesa_get_compressed_formats()
431 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR; in _mesa_get_compressed_formats()
432 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR; in _mesa_get_compressed_formats()
433 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR; in _mesa_get_compressed_formats()
434 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR; in _mesa_get_compressed_formats()
435 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR; in _mesa_get_compressed_formats()
436 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR; in _mesa_get_compressed_formats()
437 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR; in _mesa_get_compressed_formats()
438 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR; in _mesa_get_compressed_formats()
439 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR; in _mesa_get_compressed_formats()
440 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR; in _mesa_get_compressed_formats()
449 if (formats) { in _mesa_get_compressed_formats()
450 formats[n++] = GL_COMPRESSED_RGBA_ASTC_3x3x3_OES; in _mesa_get_compressed_formats()
451 formats[n++] = GL_COMPRESSED_RGBA_ASTC_4x3x3_OES; in _mesa_get_compressed_formats()
452 formats[n++] = GL_COMPRESSED_RGBA_ASTC_4x4x3_OES; in _mesa_get_compressed_formats()
453 formats[n++] = GL_COMPRESSED_RGBA_ASTC_4x4x4_OES; in _mesa_get_compressed_formats()
454 formats[n++] = GL_COMPRESSED_RGBA_ASTC_5x4x4_OES; in _mesa_get_compressed_formats()
455 formats[n++] = GL_COMPRESSED_RGBA_ASTC_5x5x4_OES; in _mesa_get_compressed_formats()
456 formats[n++] = GL_COMPRESSED_RGBA_ASTC_5x5x5_OES; in _mesa_get_compressed_formats()
457 formats[n++] = GL_COMPRESSED_RGBA_ASTC_6x5x5_OES; in _mesa_get_compressed_formats()
458 formats[n++] = GL_COMPRESSED_RGBA_ASTC_6x6x5_OES; in _mesa_get_compressed_formats()
459 formats[n++] = GL_COMPRESSED_RGBA_ASTC_6x6x6_OES; in _mesa_get_compressed_formats()
460 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_3x3x3_OES; in _mesa_get_compressed_formats()
461 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x3x3_OES; in _mesa_get_compressed_formats()
462 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4x3_OES; in _mesa_get_compressed_formats()
463 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4x4_OES; in _mesa_get_compressed_formats()
464 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4x4_OES; in _mesa_get_compressed_formats()
465 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5x4_OES; in _mesa_get_compressed_formats()
466 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5x5_OES; in _mesa_get_compressed_formats()
467 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5x5_OES; in _mesa_get_compressed_formats()
468 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6x5_OES; in _mesa_get_compressed_formats()
469 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6x6_OES; in _mesa_get_compressed_formats()