diff --git a/gpu/src/types.zig b/gpu/src/types.zig index 3962b3be..91c13c98 100644 --- a/gpu/src/types.zig +++ b/gpu/src/types.zig @@ -549,15 +549,15 @@ pub const CompilationInfo = extern struct { pub const DepthStencilState = extern struct { next_in_chain: *const ChainedStruct, format: TextureFormat, - depth_write_enabled: bool, - depth_compare: CompareFunction, + depth_write_enabled: bool = false, + depth_compare: CompareFunction = .always, stencil_front: StencilFaceState, stencil_back: StencilFaceState, - stencil_read_mask: u32, - stencil_write_mask: u32, - depth_bias: i32, - depth_bias_slope_scale: f32, - depth_bias_clamp: f32, + stencil_read_mask: u32 = 0xFFFFFFFF, + stencil_write_mask: u32 = 0xFFFFFFFF, + depth_bias: i32 = 0, + depth_bias_slope_scale: f32 = 0.0, + depth_bias_clamp: f32 = 0.0, }; pub const ImageCopyBuffer = extern struct {