gpu: make all next_in_chain fields optional, default to null

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-27 10:25:03 -07:00 committed by Stephen Gutekanst
parent 9fccd0806c
commit 41fe42e366
23 changed files with 44 additions and 44 deletions

View file

@ -24,7 +24,7 @@ pub const BindGroupLayout = *opaque {
};
pub const BindGroupLayoutEntry = extern struct {
next_in_chain: *const ChainedStruct,
next_in_chain: ?*const ChainedStruct = null,
binding: u32,
visibility: ShaderStageFlags,
buffer: BufferBindingLayout,
@ -34,7 +34,7 @@ pub const BindGroupLayoutEntry = extern struct {
};
pub const BindGroupLayoutDescriptor = extern struct {
next_in_chain: *const ChainedStruct,
next_in_chain: ?*const ChainedStruct = null,
label: ?[*:0]const u8 = null,
entry_count: u32,
// TODO: file a bug on Dawn, this is not marked as nullable but in fact is.