gpu: correct nullable slice / _count-ed pointers (bug in Dawn docs)

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-27 09:38:26 -07:00 committed by Stephen Gutekanst
parent 937d0120a3
commit 158ba8db59
8 changed files with 26 additions and 13 deletions

View file

@ -37,5 +37,6 @@ pub const BindGroupLayoutDescriptor = extern struct {
next_in_chain: *const ChainedStruct,
label: ?[*:0]const u8 = null,
entry_count: u32,
entries: [*]const BindGroupLayoutEntry,
// TODO: file a bug on Dawn, this is not marked as nullable but in fact is.
entries: ?[*]const BindGroupLayoutEntry,
};