gpu: update defaults/optionality for VertexBufferLayout

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

View file

@ -610,7 +610,7 @@ pub const SupportedLimits = extern struct {
pub const VertexBufferLayout = extern struct {
array_stride: u64,
step_mode: VertexStepMode,
step_mode: VertexStepMode = .vertex,
attribute_count: u32,
// TODO: file a bug on Dawn, this is not marked as nullable but in fact is.
attributes: ?[*]const VertexAttribute,