From e0e262ea1c301570346e9665ce4844398912a367 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Wed, 27 Jul 2022 09:59:24 -0700 Subject: [PATCH] gpu: update defaults/optionality for VertexBufferLayout Signed-off-by: Stephen Gutekanst --- gpu/src/types.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpu/src/types.zig b/gpu/src/types.zig index 1410f76d..fda8ae44 100644 --- a/gpu/src/types.zig +++ b/gpu/src/types.zig @@ -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,