From 76b9f26f399f785ac8ba1d2eedc45e7dae9c0439 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sat, 16 Jul 2022 19:47:24 -0700 Subject: [PATCH] gpu: add PrimitiveDepthClampingState Signed-off-by: Stephen Gutekanst --- gpu/TODO-webgpu.h | 6 ------ gpu/src/types.zig | 5 +++++ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/gpu/TODO-webgpu.h b/gpu/TODO-webgpu.h index 549765b1..a7c15914 100644 --- a/gpu/TODO-webgpu.h +++ b/gpu/TODO-webgpu.h @@ -1,9 +1,3 @@ - -pub const PrimitiveDepthClampingState = extern struct { - chain: ChainedStruct, - clamp_depth: bool, -}; - pub const PrimitiveDepthClipControl = extern struct { chain: ChainedStruct, unclipped_depth: bool, diff --git a/gpu/src/types.zig b/gpu/src/types.zig index 816f4525..193c15d3 100644 --- a/gpu/src/types.zig +++ b/gpu/src/types.zig @@ -464,6 +464,11 @@ pub const MultisampleState = struct { alpha_to_coverage_enabled: bool, }; +pub const PrimitiveDepthClampingState = extern struct { + chain: ChainedStruct, + clamp_depth: bool, +}; + test "BackendType name" { try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name()); }