From 991887fc67b2ba8fba5faf88394b771ae85b6c85 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Fri, 15 Jul 2022 01:38:11 -0700 Subject: [PATCH] gpu: add Origin3D 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 01323502..2c8d51d3 100644 --- a/gpu/TODO-webgpu.h +++ b/gpu/TODO-webgpu.h @@ -91,12 +91,6 @@ typedef struct WGPUMultisampleState { alpha_to_coverage_enabled: bool, } WGPUMultisampleState; -typedef struct WGPUOrigin3D { - x: u32, - y: u32, - z: u32, -} WGPUOrigin3D; - typedef struct WGPUPipelineLayoutDescriptor { next_in_chain: *const ChainedStruct, label: ?[*:0]const u8 = null, diff --git a/gpu/src/types.zig b/gpu/src/types.zig index d0a7916a..3c311514 100644 --- a/gpu/src/types.zig +++ b/gpu/src/types.zig @@ -424,6 +424,12 @@ pub const Limits = extern struct { max_compute_workgroups_per_dimension: u32, }; +pub const Origin3D = extern struct { + x: u32 = 0, + y: u32 = 0, + z: u32 = 0, +}; + test "BackendType name" { try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name()); }