From 9a5ae0c80f827a93dc6b18818ef9783924006933 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Wed, 27 Jul 2022 09:57:07 -0700 Subject: [PATCH] gpu: correct nullable slice / _count-ed pointers (bug in Dawn docs) Signed-off-by: Stephen Gutekanst --- gpu/src/render_bundle_encoder.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gpu/src/render_bundle_encoder.zig b/gpu/src/render_bundle_encoder.zig index cc7f1473..3e4ee5da 100644 --- a/gpu/src/render_bundle_encoder.zig +++ b/gpu/src/render_bundle_encoder.zig @@ -87,7 +87,8 @@ pub const RenderBundleEncoderDescriptor = extern struct { next_in_chain: *const ChainedStruct, label: ?[*:0]const u8 = null, color_formats_count: u32, - color_formats: [*]const TextureFormat, + // TODO: file a bug on Dawn, this is not marked as nullable but in fact is. + color_formats: ?[*]const TextureFormat, depth_stencil_format: TextureFormat = .undef, sample_count: u32 = 1, depth_read_only: bool = false,