Lines Matching defs:depth

643 	/* Check framebuffer's depth content. */
646 glw::GLfloat depth = 0.f;
648 gl.readPixels(0, 0, 1, 1, GL_DEPTH_COMPONENT, GL_FLOAT, &depth);
651 if (de::abs(s_reference_depth - depth) > 0.0625 /* precision */)
657 << " levels. The depth content of the framebuffer was [" << depth << "], but [" << s_reference_depth
785 const glw::GLfloat TextureAttachmentTest::s_reference_depth = 0.5; //!< Reference depth value.
955 /* 3D textures are mipmapped also in depth directio, so number of layers to be tested must be limited. */
1123 /* Check framebuffer's depth content. */
1126 glw::GLfloat depth = 0.f;
1128 gl.readPixels(0, 0, 1, 1, GL_DEPTH_COMPONENT, GL_FLOAT, &depth);
1131 if (de::abs(s_reference_depth - depth) > 0.0625 /* precision */)
1137 << levels << " levels and " << layers << " layers. The depth content of the framebuffer was [" << depth
1310 const glw::GLfloat TextureLayerAttachmentTest::s_reference_depth = 0.5; //!< Reference depth.
2392 /** @brief Test DSA Clear function (depth/stencil).
2395 * @param [in] depth Depth value to be cleared with.
2399 bool ClearTest::TestClearDepthAndStencil(glw::GLfloat depth, glw::GLint stencil)
2404 /* Clearing depth and stencil. */
2405 gl.clearNamedFramebufferfi(m_fbo, GL_DEPTH_STENCIL, 0, depth, stencil);
2428 if (Compare(the_depth, depth) || Compare(the_stencil, stencil))
2435 << "ClearNamedFramebufferfi did not cleared depth/stencil attachment of the framebuffer."
2599 /* ... with depth and stencil attachments. */
2974 /** @brief Check depth and log.
2976 * @return true if depth matches reference, false otherwise.
2987 glw::GLfloat depth[2][3] = { { 0 } };
2990 gl.readPixels(0, 0, 3, 2, GL_DEPTH_COMPONENT, GL_FLOAT, depth);
2998 if (de::abs(reference[j][i] - depth[j][i]) > (1.f / 64.f) /* Precision. */)
3002 << tcu::TestLog::Message << "Blitted framebuffer depth buffer contains [" << depth[0][0] << ", "
3003 << depth[0][1] << ", " << depth[0][2] << ", \n"
3004 << depth[1][0] << ", " << depth[1][1] << ", " << depth[1][2] << "], but " << reference[0][0] << ", "
3066 * @param [in] depth Depth component.
3069 void BlitTest::ClearFramebuffer(glw::GLfloat red, glw::GLfloat green, glw::GLfloat blue, glw::GLfloat depth,
3079 gl.clearDepth(depth);
4004 /* Framebuffer object with renderbuffer attachments (depth only). */
4018 /* Framebuffer object with renderbuffer attachments (depth-stencil merged). */
4025 /* Framebuffer object with texture attachments (depth only). */
4039 /* Framebuffer object with texture attachments (depth-stencil merged). */
4077 * @param [in] depth Prepare framebuffer with depth buffer.
4080 * @note If both depth and stencil, the joined dept_stencil buffer will be created.
4082 void GetAttachmentParametersTest::CreateRenderbufferFramebuffer(bool depth, bool stencil)
4105 if (depth && (!stencil))
4117 if ((!depth) && stencil)
4129 if (depth && stencil)
4153 * @param [in] depth Prepare framebuffer with depth buffer.
4156 * @note If both depth and stencil, the joined dept_stencil buffer will be created.
4158 void GetAttachmentParametersTest::CreateTextureFramebuffer(bool depth, bool stencil)
4181 if (depth && (!stencil))
4193 if ((!depth) && stencil)
4205 if (depth && stencil)
4377 /* Omit DEPTH_STENCIL_ATTACHMENT attachment if the renderbuffer is not depth-stencil. */
4521 /* Omit DEPTH_STENCIL_ATTACHMENT attachment if the renderbuffer is not depth-stencil. */
5886 - DEPTH, identifying the depth buffer,
5938 - DEPTH, identifying the depth buffer,
7541 /* Create depth pass buffer. */
7632 /* Draw to depth buffer. */
7878 sizeof(s_depth_pass_quad); //!< Size of depth pass' geometry.
8290 std::vector<glw::GLfloat> depth(size);
8292 gl.readPixels(0, 0, width, height, GL_DEPTH_COMPONENT, GL_FLOAT, &depth[0]);
8297 if (de::abs(s_reference_depth - depth[i]) > 0.0625 /* 1/16 precision */)
8300 << tcu::TestLog::Message << "Renderbuffer storage was cleared with depth component equal to "
8301 << s_reference_depth << ", but fetched value " << depth[i]
8421 const glw::GLfloat StorageTest::s_reference_depth = 0.5; //!< Reference depth.
8772 std::vector<glw::GLfloat> depth(size);
8774 gl.readPixels(0, 0, width, height, GL_DEPTH_COMPONENT, GL_FLOAT, &depth[0]);
8779 if (de::abs(s_reference_depth - depth[i]) > 0.0625 /* 1/16 precision */)
8783 << "Renderbuffer storage multisample was cleared with depth component equal to "
8784 << s_reference_depth << ", but fetched value " << depth[i]
8961 const glw::GLfloat StorageMultisampleTest::s_reference_depth = 0.5; //!< Reference depth value.
9254 internalformat is not a color-renderable, depth-renderable, or
9259 "depth-renderable, or stencil-renderable "
9453 internalformat is not a color-renderable, depth-renderable, or
9458 "internalformat is not a color-renderable, depth-renderable, or stencil-renderable format "