From 4c48f09c07f7d480c8589baf7a36723158575c7f Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Wed, 27 Jul 2022 09:58:32 -0700 Subject: [PATCH] gpu: update defaults/optionality for ProgrammableStageDescriptor Signed-off-by: Stephen Gutekanst --- gpu/src/types.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gpu/src/types.zig b/gpu/src/types.zig index 27bd12cb..1410f76d 100644 --- a/gpu/src/types.zig +++ b/gpu/src/types.zig @@ -578,9 +578,9 @@ pub const ProgrammableStageDescriptor = extern struct { next_in_chain: *const ChainedStruct, module: ShaderModule, entry_point: [*:0]const u8, - constant_count: u32, + constant_count: u32 = 0, // TODO: file a bug on Dawn, this is not marked as nullable but in fact is. - constants: ?[*]const ConstantEntry, + constants: ?[*]const ConstantEntry = null, }; pub const RenderPassColorAttachment = extern struct {