diff --git a/vulkano/src/pipeline/graphics/depth_stencil.rs b/vulkano/src/pipeline/graphics/depth_stencil.rs index 059434ac..d4bb88af 100644 --- a/vulkano/src/pipeline/graphics/depth_stencil.rs +++ b/vulkano/src/pipeline/graphics/depth_stencil.rs @@ -216,6 +216,15 @@ impl DepthState { } } + /// Returns a `DepthState` with a `Greater` depth test and depth writes enabled. + #[inline] + pub fn reverse() -> Self { + Self { + compare_op: CompareOp::Greater, + write_enable: true, + } + } + pub(crate) fn validate(self, device: &Device) -> Result<(), Box> { let Self { write_enable: _,