+ if (m_params.depthClampEnable && !m_context.getDeviceFeatures().depthClamp)
+ TCU_THROW(NotSupportedError, "DepthClamp device feature not supported.");
+
+ if (params.minDepth > 1.0f ||
+ params.minDepth < 0.0f ||
+ params.maxDepth > 1.0f ||
+ params.maxDepth < 0.0f)
+ {
+ if (!de::contains(context.getDeviceExtensions().begin(), context.getDeviceExtensions().end(), "VK_EXT_depth_range_unrestricted"))
+ throw tcu::NotSupportedError("Test variant with minDepth/maxDepth outside 0..1 requires the VK_EXT_depth_range_unrestricted extension");
+ }
+