From d0782d24d196a9d305859bfaccdab10eae82f3c7 Mon Sep 17 00:00:00 2001 From: Michal Ziulek Date: Sat, 9 Apr 2022 19:17:53 +0200 Subject: [PATCH] gpu: VertexBufferLayout.attributes field needs to be a pointer to multiple structures. --- gpu/src/data.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpu/src/data.zig b/gpu/src/data.zig index 0dc1b199..70dc4b63 100644 --- a/gpu/src/data.zig +++ b/gpu/src/data.zig @@ -83,7 +83,7 @@ pub const VertexBufferLayout = extern struct { array_stride: u64, step_mode: VertexStepMode, attribute_count: u32, - attributes: *const VertexAttribute, + attributes: [*]const VertexAttribute, }; test {