gpu: correct RenderPassDescriptor.occlusion_query_set nullability

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-08-10 21:47:19 -07:00 committed by Stephen Gutekanst
parent 9f4a93cbef
commit 14b28600af

View file

@ -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,