From 3ff682956fb9c4c83b8755831f1f5e1c00f730a9 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sun, 31 Jul 2022 00:12:38 -0700 Subject: [PATCH] gpu: correct ChainedStruct / ChainedStructOut next field nullability Signed-off-by: Stephen Gutekanst --- gpu/src/types.zig | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gpu/src/types.zig b/gpu/src/types.zig index 66479892..e1cc2cd7 100644 --- a/gpu/src/types.zig +++ b/gpu/src/types.zig @@ -436,12 +436,14 @@ pub const ShaderStageFlags = packed struct { }; pub const ChainedStruct = extern struct { - next: *const ChainedStruct, + // TODO: file a bug on Dawn, this is not marked as nullable but in fact is. + next: ?*const ChainedStruct = null, s_type: SType, }; pub const ChainedStructOut = extern struct { - next: *ChainedStructOut, + // TODO: file a bug on Dawn, this is not marked as nullable but in fact is. + next: ?*ChainedStructOut = null, s_type: SType, };