From 6219013faddec4e5f9879624162ddd53b6b30e43 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Wed, 27 Jul 2022 09:56:17 -0700 Subject: [PATCH] gpu: update defaults/optionality for RenderBundleEncoderDescriptor Signed-off-by: Stephen Gutekanst --- gpu/src/render_bundle_encoder.zig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gpu/src/render_bundle_encoder.zig b/gpu/src/render_bundle_encoder.zig index aa8ed765..cc7f1473 100644 --- a/gpu/src/render_bundle_encoder.zig +++ b/gpu/src/render_bundle_encoder.zig @@ -88,8 +88,8 @@ pub const RenderBundleEncoderDescriptor = extern struct { label: ?[*:0]const u8 = null, color_formats_count: u32, color_formats: [*]const TextureFormat, - depth_stencil_format: TextureFormat, - sample_count: u32, - depth_read_only: bool, - stencil_read_only: bool, + depth_stencil_format: TextureFormat = .undef, + sample_count: u32 = 1, + depth_read_only: bool = false, + stencil_read_only: bool = false, };