gpu: update defaults/optionality for VertexState

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-27 09:45:00 -07:00 committed by Stephen Gutekanst
parent ed72b1e882
commit 7d14a98e1f

View file

@ -621,12 +621,12 @@ pub const VertexState = extern struct {
next_in_chain: *const ChainedStruct, next_in_chain: *const ChainedStruct,
module: ShaderModule, module: ShaderModule,
entry_point: [*:0]const u8, 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. // TODO: file a bug on Dawn, this is not marked as nullable but in fact is.
constants: ?[*]const ConstantEntry, constants: ?[*]const ConstantEntry = null,
buffer_count: u32, buffer_count: u32 = 0,
// TODO: file a bug on Dawn, this is not marked as nullable but in fact is. // TODO: file a bug on Dawn, this is not marked as nullable but in fact is.
buffers: ?[*]const VertexBufferLayout, buffers: ?[*]const VertexBufferLayout = null,
}; };
pub const FragmentState = extern struct { pub const FragmentState = extern struct {