Lines Matching defs:attachment
282 * @param [in] attachment Framebuffer attachment.
287 bool RenderbufferAttachmentTest::Test(glw::GLenum attachment, glw::GLenum internalformat)
309 gl.namedFramebufferRenderbuffer(m_fbo, attachment, GL_RENDERBUFFER, m_rbo);
314 << glu::getFramebufferAttachmentStr(attachment)
315 << " attachment failed with error value " << glu::getErrorStr(error) << "."
331 << glu::getFramebufferAttachmentStr(attachment) << " attachment." << tcu::TestLog::EndMessage;
463 * @param [in] attachment Framebuffer attachment.
464 * @param [in] is_color_attachment Is color attachment tested.
471 bool TextureAttachmentTest::Test(glw::GLenum attachment, bool is_color_attachment, glw::GLenum texture_target,
506 gl.namedFramebufferTexture(m_fbo, attachment, m_to, i);
508 SubTestAttachmentError(attachment, texture_target, i, levels);
515 gl.drawBuffer(attachment);
518 gl.readBuffer(attachment);
522 SubTestStatus(attachment, texture_target, i, levels);
528 if (!SubTestContent(attachment, texture_target, internalformat, i, levels))
543 * @param [in] attachment Framebuffer attachment.
550 bool TextureAttachmentTest::SubTestAttachmentError(glw::GLenum attachment, glw::GLenum texture_target,
559 << tcu::TestLog::Message << "NamedFramebufferTexture for " << glu::getFramebufferAttachmentStr(attachment)
560 << " attachment of " << glu::getTextureTargetStr(texture_target) << " texture and texture level " << level
572 * @param [in] attachment Framebuffer attachment.
579 bool TextureAttachmentTest::SubTestStatus(glw::GLenum attachment, glw::GLenum texture_target, glw::GLuint level,
592 << " texture set up as " << glu::getFramebufferAttachmentStr(attachment) << " attachment and texture level "
603 * @param [in] attachment Framebuffer attachment.
611 bool TextureAttachmentTest::SubTestContent(glw::GLenum attachment, glw::GLenum texture_target,
632 << glu::getFramebufferAttachmentStr(attachment) << " attachment and texture level " << level
655 << "with texture set up as " << glu::getFramebufferAttachmentStr(attachment)
656 << " attachment and texture level " << level << " of texture with " << levels
676 << "with texture set up as " << glu::getFramebufferAttachmentStr(attachment)
677 << " attachment and texture level " << level << " of texture with " << levels
898 /** @brief Test texture layer attachment.
900 * @param [in] attachment Framebuffer attachment.
901 * @param [in] is_color_attachment Is color attachment tested.
910 bool TextureLayerAttachmentTest::Test(glw::GLenum attachment, bool is_color_attachment, glw::GLenum texture_target,
963 gl.namedFramebufferTextureLayer(m_fbo, attachment, m_to, i, j);
965 if (!SubTestAttachmentError(attachment, texture_target, i, j, levels, layers))
975 gl.drawBuffer(attachment);
978 gl.readBuffer(attachment);
982 if (!SubTestStatus(attachment, texture_target, i, j, levels, layers))
991 if (!SubTestContent(attachment, texture_target, internalformat, i, j, levels, layers))
1012 * @param [in] attachment Framebuffer attachment.
1021 bool TextureLayerAttachmentTest::SubTestAttachmentError(glw::GLenum attachment, glw::GLenum texture_target,
1032 << tcu::TestLog::Message << "NamedFramebufferTexture for " << glu::getFramebufferAttachmentStr(attachment)
1033 << " attachment of " << glu::getTextureTargetStr(texture_target) << " texture at level " << level
1045 * @param [in] attachment Framebuffer attachment.
1054 bool TextureLayerAttachmentTest::SubTestStatus(glw::GLenum attachment, glw::GLenum texture_target, glw::GLuint level,
1068 << " texture set up as " << glu::getFramebufferAttachmentStr(attachment) << " attachment and texture level "
1080 * @param [in] attachment Framebuffer attachment.
1090 bool TextureLayerAttachmentTest::SubTestContent(glw::GLenum attachment, glw::GLenum texture_target,
1112 << glu::getFramebufferAttachmentStr(attachment) << " attachment and texture level " << level
1135 << "with texture set up as " << glu::getFramebufferAttachmentStr(attachment)
1136 << " attachment and texture level " << level << " and texture layer " << layer << " of texture with "
1156 << "with texture set up as " << glu::getFramebufferAttachmentStr(attachment)
1157 << " attachment and texture level " << level << " and texture layer " << layer << " of texture with "
1399 /* Clear each of the framebuffer's attachments with unique color using NamedFramebufferDrawBuffer for attachment selection. */
1421 /* Fetch framebuffer's content and compare it with reference using NamedFramebufferReadBuffer for attachment selection. */
1629 /* Clear each of the framebuffer's attachments with unique color using NamedFramebufferDrawBuffer for attachment selection. */
1639 /* Fetch framebuffer's content and compare it with reference using NamedFramebufferReadBuffer for attachment selection. */
1887 * @param [in] attachment Framebuffer attachment.
1891 bool InvalidateDataTest::CheckErrorAndLog(const glw::GLenum attachment)
1901 << glu::getErrorStr(error) << " error for attachment "
1902 << glu::getFramebufferAttachmentStr(attachment) << ". Test fails."
2106 * @param [in] attachment Framebuffer attachment.
2110 bool InvalidateSubDataTest::CheckErrorAndLog(const glw::GLenum attachment)
2120 << glu::getErrorStr(error) << " error for attachment "
2121 << glu::getFramebufferAttachmentStr(attachment) << ". Test fails."
2352 * @param [in] attachment Attachment to be tested.
2358 bool ClearTest::TestClearColor(glw::GLenum buffer, glw::GLenum attachment, T value)
2363 gl.drawBuffer(attachment);
2372 gl.readBuffer(attachment);
2385 << tcu::TestLog::Message << "ClearNamedFramebuffer did not cleared color attachment "
2386 << glu::getFramebufferAttachmentStr(attachment) << " of the framebuffer." << tcu::TestLog::EndMessage;
2435 << "ClearNamedFramebufferfi did not cleared depth/stencil attachment of the framebuffer."
3189 Due to this wording, except for obvious cases (incomplete attachment and missing attachments)
4266 << attachments_strings[j] << " attachment of default framebuffer." << tcu::TestLog::EndMessage;
4322 << " attachment of default framebuffer. The GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE was "
4336 << " attachment of default framebuffer." << tcu::TestLog::EndMessage;
4351 * @param [in] depth_stencil Has framebuffer depth_stencil attachment.
4377 /* Omit DEPTH_STENCIL_ATTACHMENT attachment if the renderbuffer is not depth-stencil. */
4400 << attachments_strings[j] << " attachment of renderbuffer framebuffer object."
4443 /* Omit FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE pname when DEPTH_STENCIL_ATTACHMENT attachment is used. */
4468 << " attachment of renderbuffer framebuffer object. The GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE "
4483 << " attachment of renderbuffer framebuffer object." << tcu::TestLog::EndMessage;
4498 * @param [in] depth_stencil Has framebuffer depth_stencil attachment.
4521 /* Omit DEPTH_STENCIL_ATTACHMENT attachment if the renderbuffer is not depth-stencil. */
4547 << attachments_strings[j] << " attachment of texture framebuffer object." << tcu::TestLog::EndMessage;
4601 /* Omit FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE pname when DEPTH_STENCIL_ATTACHMENT attachment is used. */
4626 << " attachment of texture framebuffer object. The GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE was "
4640 << " attachment of texture framebuffer object." << tcu::TestLog::EndMessage;
4824 /* Invalid color attachment. */
4829 /* Invalid attachment. */
4904 /* Invalid color attachment */
4907 /* Invalid attachment. */
4924 /* If this unlikely happen this mean that we cannot create invalid attachment which is not DEPTH_ATTACHMENT, STENCIL_ATTACHMENT, DEPTH_STENCIL_ATTACHMENT and
4939 * @param [in] attachment Attachment name to be logged.
4945 bool RenderbufferAttachmentErrorsTest::ExpectError(glw::GLenum expected_error, bool framebuffer, bool attachment,
4959 << (framebuffer ? "valid" : "invalid") << " framebuffer, " << (attachment ? "valid" : "invalid")
4960 << (color_attachment ? " color" : "") << " attachment, " << (renderbuffertarget ? "valid" : "invalid")
5257 /* Invalid color attachment */
5260 /* Invalid attachment. */
5308 * @param [in] attachment Attachment name to be logged.
5316 bool framebuffer, bool attachment, bool color_attachment, bool texture,
5330 << " framebuffer, " << (attachment ? "valid" : "invalid") << (color_attachment ? " color" : "")
5331 << " attachment, " << (texture ? "valid " : "invalid ") << texture_type << " texture, "
5685 /* Invalid attachment. */
6013 /* Invalid framebuffer object attachment. */
6018 /* If this unlikely happen this mean that we cannot create invalid attachment which is not DEPTH_ATTACHMENT, STENCIL_ATTACHMENT, DEPTH_STENCIL_ATTACHMENT and
6035 /* Invalid color attachment. */
6043 /* Invalid default attachment. */
6865 /* Check that INVALID_ENUM error is generated if a framebuffer object is queried, attachment
6866 is not one of the attachments in table 9.2 (COLOR_ATTACHMENTi, DEPTH_ATTACHMENT, STENCIL_ATTACHMENT, DEPTH_STENCIL_ATTACHMENT), and attachment is not
6873 "attachment is not one of the accepted framebuffer attachment points, as described in specification.");
6888 GetNamedFramebufferAttachmentParameteriv if attachment is
6896 "attachment is DEPTH_STENCIL_ATTACHMENT and pname is FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE.");
6899 queried and attachment is not one the values FRONT, FRONT_LEFT, FRONT_RIGHT,
6905 "the default framebuffer is queried and attachment is not one the values FRONT, "
6909 bound to target and attachment is COLOR_ATTACHMENTm where m is greater than or
6916 "a framebuffer object is bound to target and attachment is COLOR_ATTACHMENTm where m is "
6924 "a framebuffer object is bound to target and attachment is COLOR_ATTACHMENTm where m is "
6998 /* Invalid attachment. */
7014 /* If this unlikely happen this mean that we cannot create invalid attachment which is not DEPTH_ATTACHMENT, STENCIL_ATTACHMENT, DEPTH_STENCIL_ATTACHMENT and
7021 /* Invalid default framebuffer attachment. */