gpu: update defaults/optionality for ProgrammableStageDescriptor

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-27 09:58:32 -07:00 committed by Stephen Gutekanst
parent b89ee0361b
commit 4c48f09c07

View file

@ -578,9 +578,9 @@ pub const ProgrammableStageDescriptor = 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,
}; };
pub const RenderPassColorAttachment = extern struct { pub const RenderPassColorAttachment = extern struct {