From 14b28600afa99b38de5918ba8446a24a6e47aa01 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Wed, 10 Aug 2022 21:47:19 -0700 Subject: [PATCH] gpu: correct RenderPassDescriptor.occlusion_query_set nullability Signed-off-by: Stephen Gutekanst --- gpu/src/types.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gpu/src/types.zig b/gpu/src/types.zig index 51a981c1..fefd2bfa 100644 --- a/gpu/src/types.zig +++ b/gpu/src/types.zig @@ -66,8 +66,7 @@ pub const RenderPassDescriptor = extern struct { // TODO: file a bug on Dawn, this is not marked as nullable but in fact is. color_attachments: ?[*]const RenderPassColorAttachment, depth_stencil_attachment: ?[*]const RenderPassDepthStencilAttachment, - // TODO: file a bug on Dawn, should this be nullable? Seems very likely it should - occlusion_query_set: ?*QuerySet, + occlusion_query_set: ?*QuerySet = null, 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 = null,