Lines Matching refs:formats

36 #include "formats.h"
138 * formats that are supported.
140 * Some formats are \b not returned by this function. The
141 * \c GL_COMPRESSED_TEXTURE_FORMATS query only returns formats that are
148 * GL_COMPRESSED_TEXTURE_FORMATS queries return the RGTC formats?
154 * corresponding to formats suitable for general-purpose usage.
155 * The renderer will not enumerate formats with restrictions that
162 * Applications that seek to use the RGTC formats should do so
173 * "22) Should the new COMPRESSED_SRGB_* formats be listed in an
176 * RESOLVED: No. Section 3.8.1 says formats listed by
179 * blue for these sRGB compressed formats makes them not really
185 * GL_COMPRESSED_TEXTURE_FORMATS queries return the LATC formats?
191 * corresponding to formats suitable for general-purpose usage.
192 * The renderer will not enumerate formats with restrictions that
205 * limits itself to true linear RGB or RGBA formats, specifically
206 * not including EXT_texture_sRGB's sRGB S3TC compressed formats.
208 * Adding luminance and luminance-alpha texture formats (and
210 * formats!) invites potential comptaibility problems with old
212 * unlikely to expect non-RGB or non-RGBA formats to be advertised
216 * Applications that seek to use the LATC formats should do so
223 * formats added by this extension are luminance-alpha formats, it is
226 * expose the 3dc formats through this mechanism.
229 * \param formats the resulting format list (may be NULL).
231 * \return number of formats.
234 _mesa_get_compressed_formats(struct gl_context *ctx, GLint *formats)
238 if (formats) {
239 formats[n++] = GL_COMPRESSED_RGB_FXT1_3DFX;
240 formats[n++] = GL_COMPRESSED_RGBA_FXT1_3DFX;
248 if (formats) {
249 formats[n++] = GL_COMPRESSED_RGB_S3TC_DXT1_EXT;
250 formats[n++] = GL_COMPRESSED_RGBA_S3TC_DXT3_EXT;
251 formats[n++] = GL_COMPRESSED_RGBA_S3TC_DXT5_EXT;
258 if (formats) {
259 formats[n++] = GL_RGB_S3TC;
260 formats[n++] = GL_RGB4_S3TC;
261 formats[n++] = GL_RGBA_S3TC;
262 formats[n++] = GL_RGBA4_S3TC;
270 if (formats) {
271 formats[n++] = GL_ETC1_RGB8_OES;
280 if (formats) {
281 formats[n++] = GL_PALETTE4_RGB8_OES;
282 formats[n++] = GL_PALETTE4_RGBA8_OES;
283 formats[n++] = GL_PALETTE4_R5_G6_B5_OES;
284 formats[n++] = GL_PALETTE4_RGBA4_OES;
285 formats[n++] = GL_PALETTE4_RGB5_A1_OES;
286 formats[n++] = GL_PALETTE8_RGB8_OES;
287 formats[n++] = GL_PALETTE8_RGBA8_OES;
288 formats[n++] = GL_PALETTE8_R5_G6_B5_OES;
289 formats[n++] = GL_PALETTE8_RGBA4_OES;
290 formats[n++] = GL_PALETTE8_RGB5_A1_OES;
495 /* DXT formats */
509 /* FXT1 formats */
517 /* Red/RG formats */
531 /* L/LA formats */
545 /* ETC1 formats */