From f8e7f96a4a12d3b4b1a3e79ddf9ced0cf4174ab8 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Fri, 22 Apr 2022 22:14:14 -0700 Subject: [PATCH] gpu: correct RenderPassDepthStencilAttachment default values Helps hexops/mach#182 Signed-off-by: Stephen Gutekanst --- gpu/src/structs.zig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gpu/src/structs.zig b/gpu/src/structs.zig index bfc60642..1262b0ef 100644 --- a/gpu/src/structs.zig +++ b/gpu/src/structs.zig @@ -87,13 +87,13 @@ pub const RenderPassTimestampWrite = struct { pub const RenderPassDepthStencilAttachment = struct { view: TextureView, - depth_load_op: LoadOp, - depth_store_op: StoreOp, + depth_load_op: LoadOp = .none, + depth_store_op: StoreOp = .none, clear_depth: f32 = math.nan_f32, depth_clear_value: f32 = 0.0, depth_read_only: bool = false, - stencil_load_op: LoadOp, - stencil_store_op: StoreOp, + stencil_load_op: LoadOp = .none, + stencil_store_op: StoreOp = .none, clear_stencil: u32 = 0, stencil_clear_value: u32 = 0.0, stencil_read_only: bool = false,