From 9079f5bd335c18d565fc211a6bb63dcafcd49c00 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Fri, 15 Jul 2022 01:20:55 -0700 Subject: [PATCH] gpu: add Extent3D Signed-off-by: Stephen Gutekanst --- gpu/TODO-webgpu.h | 6 ------ gpu/src/types.zig | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gpu/TODO-webgpu.h b/gpu/TODO-webgpu.h index 25fd2304..4a7acba9 100644 --- a/gpu/TODO-webgpu.h +++ b/gpu/TODO-webgpu.h @@ -59,12 +59,6 @@ typedef struct WGPUDawnTogglesDeviceDescriptor { const char* const * forceDisabledToggles; } WGPUDawnTogglesDeviceDescriptor; -typedef struct WGPUExtent3D { - width: u32, - height: u32, - depth_or_array_layers: u32, -} WGPUExtent3D; - typedef struct WGPUExternalTextureBindingEntry { WGPUChainedStruct chain; WGPUExternalTexture externalTexture; diff --git a/gpu/src/types.zig b/gpu/src/types.zig index 3c2d84c2..a0e12a54 100644 --- a/gpu/src/types.zig +++ b/gpu/src/types.zig @@ -387,6 +387,12 @@ pub const Color = extern struct { a: f64, }; +pub const Extent3D = extern struct { + width: u32, + height: u32, + depth_or_array_layers: u32, +}; + test "BackendType name" { try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name()); }