gpu: correct ChainedStruct / ChainedStructOut next field nullability

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-31 00:12:38 -07:00 committed by Stephen Gutekanst
parent 2a39ff8f7e
commit 3ff682956f

View file

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