gpu: correct RenderPassDepthStencilAttachment default values

Helps hexops/mach#182

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-04-22 22:14:14 -07:00 committed by Stephen Gutekanst
parent 821117fb26
commit f8e7f96a4a

View file

@ -87,13 +87,13 @@ pub const RenderPassTimestampWrite = struct {
pub const RenderPassDepthStencilAttachment = struct { pub const RenderPassDepthStencilAttachment = struct {
view: TextureView, view: TextureView,
depth_load_op: LoadOp, depth_load_op: LoadOp = .none,
depth_store_op: StoreOp, depth_store_op: StoreOp = .none,
clear_depth: f32 = math.nan_f32, clear_depth: f32 = math.nan_f32,
depth_clear_value: f32 = 0.0, depth_clear_value: f32 = 0.0,
depth_read_only: bool = false, depth_read_only: bool = false,
stencil_load_op: LoadOp, stencil_load_op: LoadOp = .none,
stencil_store_op: StoreOp, stencil_store_op: StoreOp = .none,
clear_stencil: u32 = 0, clear_stencil: u32 = 0,
stencil_clear_value: u32 = 0.0, stencil_clear_value: u32 = 0.0,
stencil_read_only: bool = false, stencil_read_only: bool = false,