Lines Matching refs:format
272 // For source pixels: GL internal-format used by all channels.
273 // For destination pixels: GL format to be used for gl.readPixels()
482 /** Tells whether @param type can be used with @param internalformat internal format.
485 * @param internalformat GLES internal format to consider.
487 * @return true if the type is compatible with specific internal format, false otherwise.
685 * GL_ALPHA8 internal format.
716 * GL_LUMINANCE8 internal format.
750 * GL_LUMINANCE8_ALPHA8 internal format.
785 * GL_R16I internal format.
836 * GL_R16UI internal format.
887 * GL_R32I internal format.
925 * GL_R32UI internal format.
963 * GL_R8I internal format.
1011 * GL_R8UI internal format.
1058 * GL_R8 internal format.
1095 * GL_RG16I internal format.
1149 * GL_RG16UI internal format.
1199 * GL_RG32I internal format.
1237 * GL_RG32UI internal format.
1277 * GL_RG8I internal format.
1327 * GL_RGB8UI internal format.
1377 * GL_RG8 internal format.
1417 * GL_RGB10_A2 internal format.
1458 * GL_RGB10A2UI internal format.
1514 * GL_RGB16I internal format.
1567 * GL_RGB16UI internal format.
1621 * GL_RGB32I internal format.
1663 * GL_RGB32UI internal format.
1706 * GL_RGB5A1 internal format.
1809 * GL_RGB565 internal format.
1883 * GL_RGB8 internal format.
1926 * GL_RGB8I internal format.
1979 * GL_RGB8UI internal format.
2034 * GL_RGBA16I internal format.
2090 * GL_RGBA16UI internal format.
2146 * GL_RGBA32I internal format.
2181 * GL_RGBA32UI internal format.
2217 * GL_RGBA8I internal format.
2273 * GL_RGBA8UI internal format.
2329 * GL_RGBA4 internal format.
2400 * GL_RGBA8 internal format.
2436 * GL_SRGB8_ALPHA8 internal format.
2457 * GL_SRGB8 internal format.
2489 * GL_R16F internal format.
2526 * GL_R32F internal format.
2563 * GL_RG16F internal format.
2605 * GL_RG32F internal format.
2647 * GL_RGB16F internal format.
2694 * GL_RGB32F internal format.
2741 * GL_RGBA16F internal format.
2777 * GL_RGBA32F internal format.
2901 // Quick checks: format used for destination storage
4753 GLenum format, GLenum type, void* data);
4797 * format+type combinations. This function allows to enumerate valid pairs for user-specified
4802 * @param internalformat GLES internal format to consider.
4803 * @param index Index of format+type pair to look up.
4804 * @param out_format Deref will be used to store compatible GLES format. Cannot be NULL.
4807 * @return true if successful and relevant format & type information has been stored under
4822 TCU_FAIL("No format known for requested internalformat");
5327 /** Retrieves GLES format compatible for user-specified GLES internal format.
5338 // Find out the format for user-provided internalformat
5448 /** Retrieves FBO effective internal format at user-specified index.
5452 * @param index Index to look up the internal format at.
5473 /** Retrieves glCopyTexImage2D() internal format at user-specified index.
5477 * @param index Index to look up the internal format at.
5690 * @param internal_format Internal-format of the data under @param data.
5691 * @param format Format of the data under @param data.
5699 GLenum format, GLenum type, void* data)
5731 format, type, data);
5784 0 /* border */, format, type, data);
5805 format, type, data);
5826 0 /* border */, format, type, NULL);
5828 TEXTURE_HEIGHT, 1 /* depth */, format, type, data);
5861 << (is_source_gl_object ? "source" : "destination") << "] of format ["
5930 * @return true if the internal format can be used for the call,
5935 // Internal format can be used for gl.renderbufferStorage()
5941 /** Tells whether internal format @param internalformat is color-renderable.
5943 * @param internalformat GLES internal format to consider.
6024 /** Tells whether internal format @param internalformat is depth-renderable.
6026 * @param internalformat GLES internal format to consider.
6043 /** Tells whether internal format @param internalformat is depth+stencil-renderable.
6045 * @param internalformat GLES internal format to consider.
6063 * using an internal format @param dst_internalformat.
6065 * @param src_internalformat Internal format to be used for source object's data storage.
6066 * @param dst_internalformat Internal format to be used for destination texture object's data storage.
6119 /** Retrieves a string representing name of internal format passed by argument.
6121 * @param internalformat GLES internal format to retrieve a string for.
6268 * I) First sub-level determines what internal format should be used for the source attachment.
6270 * II) Second sub-level determines internal format that should be passed as a parameter to
6273 * For each internal format pair, the test creates and configures a corresponding GL object and
6278 * in an iteration-specific format and type. For more details, please see implementation of
6281 * The test then loops over all supported format+type combinations for the internal-format considered
6338 unsigned int getSizeOfPixel(GLenum format, GLenum type);
6738 // Try using all compatible format+type pairs
6743 // There may be many entries for a single source internal format + type pair, so
6799 // The implementation does not allow us to use source data built using this internal-format,
7185 // Check next format+type combination
7188 // If we're copying from a renderbuffer, we don't really care about compatible format+type pairs, as
7194 } // while (internalformat has n-th legal format+type pair)
7362 * @param result_internalformat Effective internal-format, expected to be used by the
7364 * @param src_format GL format used for source object's data storage.
7392 // Determine which read format should be used for reading.
7393 // Note that GLES3 accepts GL_RGBA_INTEGER format for GL_RGB10_A2UI internalformat
7471 * a @param format format + @param type type pair.
7473 * @param format GLES format to consider.
7478 unsigned int RequiredCase::getSizeOfPixel(GLenum format, GLenum type)
7482 switch (format)
7609 // Quick checks: format should be equal to one of the values supported
7635 // Fill the fields, depending on user-provided format+type pair
7721 * @param result_internalformat Internal format the implementation is expected
7728 * @param src_internalformat Internal-format used for source object's data storage.
7939 * stored in @param internalformat internal format.
7941 * @param internalformat GLES internal format to consider.
7944 * format uses for subsequently R, G, B and A
8192 * 1) Source object's data internal format equal to @param src_internalformat.
8194 * 3) Internal format used for glCopyTexImage2D() call equal to @param copyteximage2d_internalformat.
8206 * @param src_internalformat Source object's data internal format to assume.
8208 * @param copyteximage2d_internalformat Internal format to be used for glCopyTexImage2D() call.
8209 * @param out_result_internalformat Deref will be used to store internal format that GLES implementation
8322 * @param internalformat GLES internal format to look for.
8341 * @param internalformat GLES internal format to look for.
8376 GLenum format = GL_NONE;
8394 if (!getFormatForInternalformat(internalformat, &format))
8398 } // if (no format known for requested internalformat)
8408 n_bytes_per_pixel = getSizeOfPixel(format, GL_FLOAT);
8410 n_bytes_per_pixel = getSizeOfPixel(format, type);
8817 /** Retrieves information on channel order for user-specified internal format+type
8820 * @param internalformat GLES internal format to consider.
8830 GLenum format = GL_NONE;
8834 if (!getFormatForInternalformat(internalformat, &format))
8840 switch (format)
8873 // Unrecognized format?
9653 // Unrecognized internal format
9660 /** Tells whether internal format @param internalformat is compatible with a floating-point
9663 * @param internalformat GLES internal format to consider.
9718 /** Tells whether internal format @param internalformat is compatible with integer
9721 * @param internalformat GLES internal format to consider.
9747 /** Tells whether internal format @param internalformat is compatible with unsigned integer
9750 * @param internalformat GLES internal format to consider.
9961 * I) First sub-level determines what internal format should be used for the source attachment.
9963 * II) Second sub-level determines internal format that should be passed as a parameter to
9966 * For each internal format pair, the test creates and configures a corresponding GL object and
9970 * The test then loops over all supported format+type combinations for the internal-format considered
10124 // Try using all compatible format+type pairs for
10185 // If we're copying from a renderbuffer, we don't really care about compatible format+type pairs, as
10189 } // for (all compatible format+type pairs)