From 70f9e9eae6ba1953ec5f60f5d075869b95f3631f Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Thu, 11 Aug 2022 15:18:03 -0700 Subject: [PATCH] gpu: correct DepthStencilState defaults Signed-off-by: Stephen Gutekanst --- gpu/src/types.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gpu/src/types.zig b/gpu/src/types.zig index 20f82b06..431461ac 100644 --- a/gpu/src/types.zig +++ b/gpu/src/types.zig @@ -586,8 +586,8 @@ pub const DepthStencilState = extern struct { format: Texture.Format, depth_write_enabled: bool = false, depth_compare: CompareFunction = .always, - stencil_front: StencilFaceState, - stencil_back: StencilFaceState, + stencil_front: StencilFaceState = .{}, + stencil_back: StencilFaceState = .{}, stencil_read_mask: u32 = 0xFFFFFFFF, stencil_write_mask: u32 = 0xFFFFFFFF, depth_bias: i32 = 0, @@ -605,7 +605,7 @@ pub const ImageCopyTexture = extern struct { next_in_chain: ?*const ChainedStruct = null, texture: *Texture, mip_level: u32 = 0, - origin: Origin3D, + origin: Origin3D = .{}, aspect: Texture.Aspect = .all, };