Lines Matching full: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) in _mesa_get_compressed_formats() argument
272 if (!formats) { in _mesa_get_compressed_formats()
273 formats = discard_formats; in _mesa_get_compressed_formats()
278 formats[n++] = GL_COMPRESSED_RGB_FXT1_3DFX; in _mesa_get_compressed_formats()
279 formats[n++] = GL_COMPRESSED_RGBA_FXT1_3DFX; in _mesa_get_compressed_formats()
283 formats[n++] = GL_COMPRESSED_RGB_S3TC_DXT1_EXT; in _mesa_get_compressed_formats()
284 formats[n++] = GL_COMPRESSED_RGBA_S3TC_DXT3_EXT; in _mesa_get_compressed_formats()
285 formats[n++] = GL_COMPRESSED_RGBA_S3TC_DXT5_EXT; in _mesa_get_compressed_formats()
292 * formats that it could ask the driver to compress with some in _mesa_get_compressed_formats()
301 * formats that the driver can receive from the application. It in _mesa_get_compressed_formats()
302 * is the *complete* list of formats. The in _mesa_get_compressed_formats()
317 formats[n++] = GL_COMPRESSED_RGBA_S3TC_DXT1_EXT; in _mesa_get_compressed_formats()
330 formats[n++] = GL_ETC1_RGB8_OES; in _mesa_get_compressed_formats()
335 formats[n++] = GL_COMPRESSED_RGBA_BPTC_UNORM; in _mesa_get_compressed_formats()
336 formats[n++] = GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM; in _mesa_get_compressed_formats()
337 formats[n++] = GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT; in _mesa_get_compressed_formats()
338 formats[n++] = GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT; in _mesa_get_compressed_formats()
344 formats[n++] = GL_COMPRESSED_RED_RGTC1_EXT; in _mesa_get_compressed_formats()
345 formats[n++] = GL_COMPRESSED_SIGNED_RED_RGTC1_EXT; in _mesa_get_compressed_formats()
346 formats[n++] = GL_COMPRESSED_RED_GREEN_RGTC2_EXT; in _mesa_get_compressed_formats()
347 formats[n++] = GL_COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT; in _mesa_get_compressed_formats()
351 formats[n++] = GL_PALETTE4_RGB8_OES; in _mesa_get_compressed_formats()
352 formats[n++] = GL_PALETTE4_RGBA8_OES; in _mesa_get_compressed_formats()
353 formats[n++] = GL_PALETTE4_R5_G6_B5_OES; in _mesa_get_compressed_formats()
354 formats[n++] = GL_PALETTE4_RGBA4_OES; in _mesa_get_compressed_formats()
355 formats[n++] = GL_PALETTE4_RGB5_A1_OES; in _mesa_get_compressed_formats()
356 formats[n++] = GL_PALETTE8_RGB8_OES; in _mesa_get_compressed_formats()
357 formats[n++] = GL_PALETTE8_RGBA8_OES; in _mesa_get_compressed_formats()
358 formats[n++] = GL_PALETTE8_R5_G6_B5_OES; in _mesa_get_compressed_formats()
359 formats[n++] = GL_PALETTE8_RGBA4_OES; in _mesa_get_compressed_formats()
360 formats[n++] = GL_PALETTE8_RGB5_A1_OES; in _mesa_get_compressed_formats()
364 formats[n++] = GL_COMPRESSED_RGB8_ETC2; in _mesa_get_compressed_formats()
365 formats[n++] = GL_COMPRESSED_RGBA8_ETC2_EAC; in _mesa_get_compressed_formats()
366 formats[n++] = GL_COMPRESSED_R11_EAC; in _mesa_get_compressed_formats()
367 formats[n++] = GL_COMPRESSED_RG11_EAC; in _mesa_get_compressed_formats()
368 formats[n++] = GL_COMPRESSED_SIGNED_R11_EAC; in _mesa_get_compressed_formats()
369 formats[n++] = GL_COMPRESSED_SIGNED_RG11_EAC; in _mesa_get_compressed_formats()
370 formats[n++] = GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2; in _mesa_get_compressed_formats()
374 formats[n++] = GL_COMPRESSED_SRGB8_ETC2; in _mesa_get_compressed_formats()
375 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC; in _mesa_get_compressed_formats()
376 formats[n++] = GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2; in _mesa_get_compressed_formats()
387 * Specification, subsection Encoding of Special Internal Formats). in _mesa_get_compressed_formats()
403 * compressed formats. in _mesa_get_compressed_formats()
407 formats[n++] = GL_COMPRESSED_RGBA_ASTC_4x4_KHR; in _mesa_get_compressed_formats()
408 formats[n++] = GL_COMPRESSED_RGBA_ASTC_5x4_KHR; in _mesa_get_compressed_formats()
409 formats[n++] = GL_COMPRESSED_RGBA_ASTC_5x5_KHR; in _mesa_get_compressed_formats()
410 formats[n++] = GL_COMPRESSED_RGBA_ASTC_6x5_KHR; in _mesa_get_compressed_formats()
411 formats[n++] = GL_COMPRESSED_RGBA_ASTC_6x6_KHR; in _mesa_get_compressed_formats()
412 formats[n++] = GL_COMPRESSED_RGBA_ASTC_8x5_KHR; in _mesa_get_compressed_formats()
413 formats[n++] = GL_COMPRESSED_RGBA_ASTC_8x6_KHR; in _mesa_get_compressed_formats()
414 formats[n++] = GL_COMPRESSED_RGBA_ASTC_8x8_KHR; in _mesa_get_compressed_formats()
415 formats[n++] = GL_COMPRESSED_RGBA_ASTC_10x5_KHR; in _mesa_get_compressed_formats()
416 formats[n++] = GL_COMPRESSED_RGBA_ASTC_10x6_KHR; in _mesa_get_compressed_formats()
417 formats[n++] = GL_COMPRESSED_RGBA_ASTC_10x8_KHR; in _mesa_get_compressed_formats()
418 formats[n++] = GL_COMPRESSED_RGBA_ASTC_10x10_KHR; in _mesa_get_compressed_formats()
419 formats[n++] = GL_COMPRESSED_RGBA_ASTC_12x10_KHR; in _mesa_get_compressed_formats()
420 formats[n++] = GL_COMPRESSED_RGBA_ASTC_12x12_KHR; in _mesa_get_compressed_formats()
421 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR; in _mesa_get_compressed_formats()
422 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR; in _mesa_get_compressed_formats()
423 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR; in _mesa_get_compressed_formats()
424 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR; in _mesa_get_compressed_formats()
425 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR; in _mesa_get_compressed_formats()
426 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR; in _mesa_get_compressed_formats()
427 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR; in _mesa_get_compressed_formats()
428 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR; in _mesa_get_compressed_formats()
429 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR; in _mesa_get_compressed_formats()
430 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR; in _mesa_get_compressed_formats()
431 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR; in _mesa_get_compressed_formats()
432 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR; in _mesa_get_compressed_formats()
433 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR; in _mesa_get_compressed_formats()
434 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR; in _mesa_get_compressed_formats()
439 formats[n++] = GL_COMPRESSED_RGBA_ASTC_3x3x3_OES; in _mesa_get_compressed_formats()
440 formats[n++] = GL_COMPRESSED_RGBA_ASTC_4x3x3_OES; in _mesa_get_compressed_formats()
441 formats[n++] = GL_COMPRESSED_RGBA_ASTC_4x4x3_OES; in _mesa_get_compressed_formats()
442 formats[n++] = GL_COMPRESSED_RGBA_ASTC_4x4x4_OES; in _mesa_get_compressed_formats()
443 formats[n++] = GL_COMPRESSED_RGBA_ASTC_5x4x4_OES; in _mesa_get_compressed_formats()
444 formats[n++] = GL_COMPRESSED_RGBA_ASTC_5x5x4_OES; in _mesa_get_compressed_formats()
445 formats[n++] = GL_COMPRESSED_RGBA_ASTC_5x5x5_OES; in _mesa_get_compressed_formats()
446 formats[n++] = GL_COMPRESSED_RGBA_ASTC_6x5x5_OES; in _mesa_get_compressed_formats()
447 formats[n++] = GL_COMPRESSED_RGBA_ASTC_6x6x5_OES; in _mesa_get_compressed_formats()
448 formats[n++] = GL_COMPRESSED_RGBA_ASTC_6x6x6_OES; in _mesa_get_compressed_formats()
449 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_3x3x3_OES; in _mesa_get_compressed_formats()
450 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x3x3_OES; in _mesa_get_compressed_formats()
451 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4x3_OES; in _mesa_get_compressed_formats()
452 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4x4_OES; in _mesa_get_compressed_formats()
453 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4x4_OES; in _mesa_get_compressed_formats()
454 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5x4_OES; in _mesa_get_compressed_formats()
455 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5x5_OES; in _mesa_get_compressed_formats()
456 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5x5_OES; in _mesa_get_compressed_formats()
457 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6x5_OES; in _mesa_get_compressed_formats()
458 formats[n++] = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6x6_OES; in _mesa_get_compressed_formats()
470 formats[n++] = GL_ATC_RGB_AMD; in _mesa_get_compressed_formats()
471 formats[n++] = GL_ATC_RGBA_EXPLICIT_ALPHA_AMD; in _mesa_get_compressed_formats()
472 formats[n++] = GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD; in _mesa_get_compressed_formats()