gpu: update defaults/optionality for RenderBundleEncoderDescriptor

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-27 09:56:17 -07:00 committed by Stephen Gutekanst
parent 7ab2dbf3d5
commit 6219013fad

View file

@ -88,8 +88,8 @@ pub const RenderBundleEncoderDescriptor = extern struct {
label: ?[*:0]const u8 = null, label: ?[*:0]const u8 = null,
color_formats_count: u32, color_formats_count: u32,
color_formats: [*]const TextureFormat, color_formats: [*]const TextureFormat,
depth_stencil_format: TextureFormat, depth_stencil_format: TextureFormat = .undef,
sample_count: u32, sample_count: u32 = 1,
depth_read_only: bool, depth_read_only: bool = false,
stencil_read_only: bool, stencil_read_only: bool = false,
}; };