From edf66b6b8dd164337673fc8ffc021f8e284b7aeb Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Fri, 11 Mar 2022 14:46:21 -0700 Subject: [PATCH] gpu: add Extent3D Signed-off-by: Stephen Gutekanst --- gpu/src/TODO | 6 ------ gpu/src/structs.zig | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gpu/src/TODO b/gpu/src/TODO index e914a113..81bce5eb 100644 --- a/gpu/src/TODO +++ b/gpu/src/TODO @@ -377,12 +377,6 @@ typedef struct WGPURenderPassTimestampWrite { -typedef struct WGPUExtent3D { - uint32_t width; - uint32_t height; - uint32_t depthOrArrayLayers; -} WGPUExtent3D; - typedef struct WGPUOrigin3D { uint32_t x; uint32_t y; diff --git a/gpu/src/structs.zig b/gpu/src/structs.zig index a2f1353f..68c75299 100644 --- a/gpu/src/structs.zig +++ b/gpu/src/structs.zig @@ -43,3 +43,9 @@ pub const Color = extern struct { b: f64, a: f64, }; + +pub const Extent3D = extern struct { + width: u32, + height: u32, + depth_or_array_layers: u32, +};