From 1b146cffd399c864dcdffee3bb8cf1387b8a1504 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Wed, 27 Jul 2022 00:31:12 -0700 Subject: [PATCH] gpu: update ComputePassDescriptor defaults/optionality Signed-off-by: Stephen Gutekanst --- gpu/src/main.zig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gpu/src/main.zig b/gpu/src/main.zig index aabd97ab..f06a0690 100644 --- a/gpu/src/main.zig +++ b/gpu/src/main.zig @@ -103,8 +103,9 @@ pub const RequestAdapterOptions = extern struct { pub const ComputePassDescriptor = extern struct { next_in_chain: *const types.ChainedStruct, label: ?[*:0]const u8 = null, - timestamp_write_count: u32, - timestamp_writes: [*]const ComputePassTimestampWrite, + timestamp_write_count: u32 = 0, + // TODO: file a bug on Dawn, this is not marked as nullable but in fact is. + timestamp_writes: ?[*]const ComputePassTimestampWrite = null, }; pub const RenderPassDescriptor = extern struct {