From b89ee0361b29494c60661894054051d8f376bb63 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Wed, 27 Jul 2022 09:58:03 -0700 Subject: [PATCH] gpu: update defaults/optionality for QuerySetDescriptor Signed-off-by: Stephen Gutekanst --- gpu/src/query_set.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gpu/src/query_set.zig b/gpu/src/query_set.zig index 779ec1e8..9167510e 100644 --- a/gpu/src/query_set.zig +++ b/gpu/src/query_set.zig @@ -35,6 +35,6 @@ pub const QuerySetDescriptor = extern struct { type: QueryType, count: u32, // TODO: file a bug on Dawn, this is not marked as nullable but in fact is. - pipeline_statistics: ?[*]const PipelineStatisticName, - pipeline_statistics_count: u32, + pipeline_statistics: ?[*]const PipelineStatisticName = null, + pipeline_statistics_count: u32 = 0, };