Lines Matching refs:format

77 	GLenum		format;
92 : format(aFormat)
133 GLenum format;
140 : format(aFormat)
158 GLuint createTexture(GLint internalFormat, GLenum format, GLenum type, GLint minFilter, GLint magFilter,
160 glu::ProgramSources prepareTexturingProgramSources(GLint internalFormat, GLenum format, GLenum type) const;
221 GLuint InternalformatCaseBase::createTexture(GLint internalFormat, GLenum format, GLenum type, GLint minFilter,
231 tcu::TextureFormat tcuTextureFormat = glu::mapGLTransferFormat(format, type);
236 // note: getPixelSize hits assertion for GL_UNSIGNED_INT_2_10_10_10_REV when format is RGB
249 gl.texImage2D(GL_TEXTURE_2D, 0, internalFormat, m_renderWidth, m_renderHeight, 0, format, type, textureDataPtr);
262 glu::ProgramSources InternalformatCaseBase::prepareTexturingProgramSources(GLint internalFormat, GLenum format,
301 if ((format == GL_RED_INTEGER) || (format == GL_RG_INTEGER) || (format == GL_RGB_INTEGER) ||
302 (format == GL_RGBA_INTEGER))
340 if (format == GL_RED_INTEGER)
342 else if (format == GL_RG_INTEGER)
344 else if (format == GL_RGB_INTEGER)
351 if (format == GL_DEPTH_STENCIL || format == GL_DEPTH_COMPONENT)
447 TCU_FAIL("Unrecognized internal format");
836 ReferenceFormatMap::iterator formatIterator = formatMap.find(m_testFormat.format);
839 m_testCtx.getLog() << tcu::TestLog::Message << "Error: Unknown 2D texture format "
840 << glu::getTextureFormatStr(m_testFormat.format).toString() << tcu::TestLog::EndMessage;
850 // Above lookup only considers m_testFormat.format
867 GLuint testTextureName = createTexture(m_testFormat.internalFormat, m_testFormat.format, m_testFormat.type,
869 GLuint referenceTextureName = createTexture(referenceInternalFormat, referenceFormat.format, referenceType,
875 prepareTexturingProgramSources(m_testFormat.internalFormat, m_testFormat.format, m_testFormat.type));
892 prepareTexturingProgramSources(referenceInternalFormat, referenceFormat.format, referenceType);
949 // Determine texture format and type
1020 // must exactly match the corresponding component sizes of the source buffer's effective internal format.
1024 << "match the corresponding component sizes of the source buffer's effective internal format." << tcu::TestLog::EndMessage;
1025 m_testCtx.setTestResult(QP_TEST_RESULT_NOT_SUPPORTED, "The test format isn't renderable, and the component sizes of "
1026 "internalformat do not exactly match the corresponding component sizes of the source buffer's effective internal format.");
1084 glu::ProgramSources prepareColoringProgramSources(GLenum format, GLenum type) const;
1142 GLenum testFormat = getUnsizedFormatFromInternalFormat(m_testFormat.format);
1143 GLenum testType = getTypeFromInternalFormat(m_testFormat.format);
1144 const bool isSRGB = m_testFormat.format == GL_SRGB8 || m_testFormat.format == GL_SRGB8_ALPHA8;
1147 // storing the reference and the values for the format under testing
1248 if (m_testFormat.format == GL_SRGB8_ALPHA8)
1367 m_rbColor = createAndAttachRenderBuffer(m_testFormat.format, GL_COLOR_ATTACHMENT0);
1374 m_rbDepth = createAndAttachRenderBuffer(m_testFormat.format, GL_DEPTH_ATTACHMENT);
1376 m_rbStencil = createAndAttachRenderBuffer(m_testFormat.format, GL_STENCIL_ATTACHMENT);
1381 m_rbDepth = createAndAttachRenderBuffer(m_testFormat.format, GL_DEPTH_ATTACHMENT);
1386 m_rbDepth = createAndAttachRenderBuffer(m_testFormat.format, GL_DEPTH_STENCIL_ATTACHMENT);
1450 glu::ProgramSources RenderbufferCase::prepareColoringProgramSources(GLenum format, GLenum type) const
1498 if (format == GL_RGBA_INTEGER)
1803 std::string formatToString(GLenum format)
1820 FormatMap::iterator it = formatMap.find(format);
1823 // if format is not in map try glu function
1824 std::string formatString = glu::getTextureFormatStr(format).toString();
1853 std::string format = formatToString(tf.format);
1861 std::string name = format + "_" + type + "_" + internalFormat;
1884 std::string name = formatToString(rbf.format);