From 242b224f963e411550227a5cf6df211a3727ee21 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sat, 16 Jul 2022 19:47:40 -0700 Subject: [PATCH] gpu: add PrimitiveDepthClipControl Signed-off-by: Stephen Gutekanst --- gpu/TODO-webgpu.h | 5 ----- gpu/src/types.zig | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gpu/TODO-webgpu.h b/gpu/TODO-webgpu.h index a7c15914..43976382 100644 --- a/gpu/TODO-webgpu.h +++ b/gpu/TODO-webgpu.h @@ -1,8 +1,3 @@ -pub const PrimitiveDepthClipControl = extern struct { - chain: ChainedStruct, - unclipped_depth: bool, -}; - pub const PrimitiveState = extern struct { next_in_chain: *const ChainedStruct, topology: PrimitiveTopology, diff --git a/gpu/src/types.zig b/gpu/src/types.zig index 193c15d3..73c7bea8 100644 --- a/gpu/src/types.zig +++ b/gpu/src/types.zig @@ -469,6 +469,11 @@ pub const PrimitiveDepthClampingState = extern struct { clamp_depth: bool, }; +pub const PrimitiveDepthClipControl = extern struct { + chain: ChainedStruct, + unclipped_depth: bool, +}; + test "BackendType name" { try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name()); }