From 835f93fb5371e41d09ef4af4205d8dd88e8a7556 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Wed, 27 Jul 2022 09:47:58 -0700 Subject: [PATCH] gpu: update defaults/optionality for RenderPassDescriptor Signed-off-by: Stephen Gutekanst --- gpu/src/main.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gpu/src/main.zig b/gpu/src/main.zig index aafdb012..2136bb89 100644 --- a/gpu/src/main.zig +++ b/gpu/src/main.zig @@ -114,11 +114,11 @@ pub const RenderPassDescriptor = extern struct { color_attachment_count: u32, // TODO: file a bug on Dawn, this is not marked as nullable but in fact is. color_attachments: ?[*]const types.RenderPassColorAttachment, - depth_stencil_attachment: ?[*]const RenderPassDepthStencilAttachment = null, + depth_stencil_attachment: ?[*]const RenderPassDepthStencilAttachment, occlusion_query_set: ?query_set.QuerySet, - timestamp_write_count: u32, + timestamp_write_count: u32 = 0, // TODO: file a bug on Dawn, this is not marked as nullable but in fact is. - timestamp_writes: ?[*]const RenderPassTimestampWrite, + timestamp_writes: ?[*]const RenderPassTimestampWrite = null, }; pub inline fn createInstance(descriptor: ?*const instance.InstanceDescriptor) ?instance.Instance {