gpu: update defaults/optionality for DepthStencilState

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-27 09:41:45 -07:00 committed by Stephen Gutekanst
parent 745abc4920
commit 9c7c8c00bf

View file

@ -549,15 +549,15 @@ pub const CompilationInfo = extern struct {
pub const DepthStencilState = extern struct { pub const DepthStencilState = extern struct {
next_in_chain: *const ChainedStruct, next_in_chain: *const ChainedStruct,
format: TextureFormat, format: TextureFormat,
depth_write_enabled: bool, depth_write_enabled: bool = false,
depth_compare: CompareFunction, depth_compare: CompareFunction = .always,
stencil_front: StencilFaceState, stencil_front: StencilFaceState,
stencil_back: StencilFaceState, stencil_back: StencilFaceState,
stencil_read_mask: u32, stencil_read_mask: u32 = 0xFFFFFFFF,
stencil_write_mask: u32, stencil_write_mask: u32 = 0xFFFFFFFF,
depth_bias: i32, depth_bias: i32 = 0,
depth_bias_slope_scale: f32, depth_bias_slope_scale: f32 = 0.0,
depth_bias_clamp: f32, depth_bias_clamp: f32 = 0.0,
}; };
pub const ImageCopyBuffer = extern struct { pub const ImageCopyBuffer = extern struct {