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()); }