gpu: update defaults/optionality for VertexState
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
ed72b1e882
commit
7d14a98e1f
1 changed files with 4 additions and 4 deletions
|
|
@ -621,12 +621,12 @@ pub const VertexState = extern struct {
|
|||
next_in_chain: *const ChainedStruct,
|
||||
module: ShaderModule,
|
||||
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.
|
||||
constants: ?[*]const ConstantEntry,
|
||||
buffer_count: u32,
|
||||
constants: ?[*]const ConstantEntry = null,
|
||||
buffer_count: u32 = 0,
|
||||
// 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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue