From f38517a3e3bf769ccc9959fc59f82561453571dd Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Sun, 28 Feb 2016 13:10:56 +0100 Subject: [PATCH] Minor work on depth stencil --- vulkano/src/pipeline/depth_stencil.rs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/vulkano/src/pipeline/depth_stencil.rs b/vulkano/src/pipeline/depth_stencil.rs index f1c718387..37daf27f1 100644 --- a/vulkano/src/pipeline/depth_stencil.rs +++ b/vulkano/src/pipeline/depth_stencil.rs @@ -1,10 +1,21 @@ +use std::ops::Range; pub struct DepthStencil { depth_write: bool, depth_compare: Compare, - depth_bounds_test: bool, + depth_bounds_test: Option>, } +impl Default for DepthStencil { + #[inline] + fn default() -> DepthStencil { + DepthStencil { + depth_write: false, + depth_compare: Compare::Always, + depth_bounds_test: None, + } + } +} VkBool32 depthTestEnable;