From 36d083b62f3e9c7524e13aeec110d9f11f679c0d Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Wed, 27 Jul 2022 00:33:48 -0700 Subject: [PATCH] gpu: update defaults/optionality for Extent3D Signed-off-by: Stephen Gutekanst --- gpu/src/types.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gpu/src/types.zig b/gpu/src/types.zig index 5e14ce46..4bdedb65 100644 --- a/gpu/src/types.zig +++ b/gpu/src/types.zig @@ -416,8 +416,8 @@ pub const Color = extern struct { pub const Extent3D = extern struct { width: u32, - height: u32, - depth_or_array_layers: u32, + height: u32 = 1, + depth_or_array_layers: u32 = 1, }; pub const Limits = extern struct {