Lines Matching refs:depth
1363 float depth;
1380 , depth (depth_)
2272 // Get the active depth bias parameters.
2608 // Returns true if the test needs the depth bias clamp feature.
3100 // Check depth bounds test support.
3112 // Check depth bias clamp feature.
3117 // Check color image format support (depth/stencil will be chosen and checked at runtime).
4572 // Choose depth/stencil format.
4589 if (maxExtent.width < kFramebufferExtent.width || maxExtent.height < kFramebufferExtent.height || maxExtent.depth < kFramebufferExtent.depth)
4611 TCU_THROW(NotSupportedError, "Required depth/stencil image features not supported");
4612 log << tcu::TestLog::Message << "Chosen depth/stencil format: " << dsFormatInfo->imageFormat << tcu::TestLog::EndMessage;
4620 // Create color and depth/stencil images.
6035 m_testConfig.meshParams[meshIdx].depth, // float meshDepth;
6259 logErrors(log, "Depth", "Result depth image and error mask", depthAccess, depthErrorAccess);
6275 DE_ASSERT(!m_testConfig.depthWriteEnableConfig.dynamicValue); // No dynamic value for depth writes.
6276 DE_ASSERT(!m_testConfig.depthWriteEnableConfig.staticValue); // No depth writes.
7403 // By default, the depth test never passes when enabled.
7405 // Dynamically enable depth test
7412 // Dynamically disable depth test
7420 // Enable depth test and set values so it passes.
7424 config.meshParams[0].depth = 0.25f;
7431 // Dynamically enable writes to the depth buffer
7437 // Enable depth test and set values so it passes.
7441 config.meshParams[0].depth = 0.25f;
7448 // Dynamically disable writes to the depth buffer
7454 // Without clamping, the mesh depth fails the depth test after applying the viewport transform.
7458 config.meshParams[0].depth = 1.5f;
7469 // Dynamically enable depth clamp
7476 config.meshParams[0].depth = 1.5f;
7488 // Dynamically disable depth clamp
7493 // "If the depth clamping state is changed dynamically, and the pipeline was not created with
7494 // VK_DYNAMIC_STATE_DEPTH_CLIP_ENABLE_EXT enabled, then depth clipping is enabled when depth clamping is disabled and vice
7497 // Try to verify the implementation ignores the static depth clipping state. We cannot test the following sequence orderings for this:
7505 config.meshParams[0].depth = -0.5f;
7516 // Dynamically enable depth clamp while making sure depth clip is disabled
7522 config.meshParams[0].depth = -0.5f;
7536 // Dynamically enable depth clamp while keeping depth clip enabled statically
7542 config.meshParams[0].depth = -0.5f;
7556 // Dynamically disable depth clamp making sure depth clipping is enabled
7559 // Note: the combination of depth clamp disabled and depth clip disabled cannot be tested because if Zf falls outside
7560 // [Zmin,Zmax] from the viewport, then the value of Zf is undefined during the depth test.
7874 // Enable depth test and set values so it passes.
7878 config.meshParams[0].depth = 0.5f;
7916 // Enable depth test and set values so it passes.
7920 config.meshParams[0].depth = -0.5f;
8333 // Depth bias enable with static or dynamic depth bias parameters.
8344 // Enable depth test and write 1.0f
8348 // Clear depth buffer to 0.25f
8350 // Write depth to 0.5f
8351 config.meshParams[0].depth = 0.5f;
8353 // Enable dynamic depth bias and expect the depth value to be clamped to 0.75f based on depthBiasConstantFactor and depthBiasClamp
8380 // Enable depth test and write 1.0f
8384 // Clear depth buffer to 0.25f
8386 // Write depth to 0.5f
8387 config.meshParams[0].depth = 0.5f;
8389 // Disable dynamic depth bias and expect the depth value to remain at 0.5f based on written value
8421 // Enable depth test and writes.
8426 config.meshParams[0].depth = 0.125f;
8428 config.expectedDepth = 0.625f; // mesh depth + target bias
8436 // We will choose a format with floating point representation, but force a UNORM exact depth bias representation.
8441 // E is the maximum exponent in the range of Z values that the primitive uses (-3 for our mesh depth of 0.125).
8454 // Dynamically set the depth bias representation information
8460 // Enable depth test and writes.
8464 config.clearDepthValue = 0.25f; // Clear depth buffer to 0.25.
8465 config.meshParams[0].depth = 0.5f; // Set mesh depth to 0.5 as a base.
8467 // Enable dynamic depth bias to add a 0.25 bias to the mesh depth (using float representation), expecting the final
8468 // depth to be 0.75.
8481 // Dynamically set the depth bias representation information to float representation
8499 config.meshParams[0].depth = 0.25f;
8502 // Dynamically set the depth compare operator to NEVER
8508 config.meshParams[0].depth = 0.25f;
8510 // Dynamically set the depth compare operator to LESS
8516 config.meshParams[0].depth = 0.75f;
8518 // Dynamically set the depth compare operator to GREATER
8524 config.meshParams[0].depth = 0.5f;
8530 // Dynamically set the depth compare operator to EQUAL
8536 config.meshParams[0].depth = 0.25f;
8538 // Dynamically set the depth compare operator to LESS_OR_EQUAL and draw with smaller depth
8544 config.meshParams[0].depth = 0.5f;
8546 // Dynamically set the depth compare operator to LESS_OR_EQUAL and draw with equal depth
8552 config.meshParams[0].depth = 0.25f;
8553 // Draw another mesh with the same depth in front of it.
8557 // Dynamically set the depth compare operator to LESS_OR_EQUAL and draw two meshes with less and equal depth
8563 config.meshParams[0].depth = 0.75f;
8565 // Dynamically set the depth compare operator to GREATER_OR_EQUAL and draw with greater depth
8571 config.meshParams[0].depth = 0.5f;
8573 // Dynamically set the depth compare operator to GREATER_OR_EQUAL and draw with equal depth
8579 config.meshParams[0].depth = 0.75f;
8580 // Draw another mesh with the same depth in front of it.
8584 // Dynamically set the depth compare operator to GREATER_OR_EQUAL and draw two meshes with greater and equal depth
8592 config.meshParams[0].depth = 0.25f;
8595 // Finally a new mesh with the same depth. This should not pass.
8600 // Dynamically set the depth compare operator to NOT_EQUAL
8607 config.meshParams[0].depth = 0.5f;
8609 // Dynamically set the depth compare operator to ALWAYS and draw with equal depth
8612 config.meshParams[0].depth = 0.25f;
8614 // Dynamically set the depth compare operator to ALWAYS and draw with less depth
8617 config.meshParams[0].depth = 0.75f;
8619 // Dynamically set the depth compare operator to ALWAYS and draw with greater depth
8628 baseConfig.meshParams[0].depth = 0.0f;
8635 // Dynamically enable the depth bounds test
8642 // Dynamically disable the depth bounds test
8757 const bool globalPass = (wouldPass && !depthFail); // Global result of the stencil+depth test.
8862 // Enable depth test and make it fail.
8868 meshPar.depth = 0.75f;
8873 config.expectedDepth = config.clearDepthValue; // No depth writing by default.