From db0fc8ad9986c084134e257f1f21b7a38677a482 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sat, 16 Jul 2022 19:47:56 -0700 Subject: [PATCH] gpu: add PrimitiveState Signed-off-by: Stephen Gutekanst --- gpu/TODO-webgpu.h | 8 -------- gpu/src/types.zig | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/gpu/TODO-webgpu.h b/gpu/TODO-webgpu.h index 43976382..680887be 100644 --- a/gpu/TODO-webgpu.h +++ b/gpu/TODO-webgpu.h @@ -1,11 +1,3 @@ -pub const PrimitiveState = extern struct { - next_in_chain: *const ChainedStruct, - topology: PrimitiveTopology, - strip_index_format: IndexFormat, - front_face: FrontFace, - cull_mode: CullMode, -}; - pub const WGPUQuerySetDescriptor = extern struct { next_in_chain: *const ChainedStruct, label: ?[*:0]const u8 = null, diff --git a/gpu/src/types.zig b/gpu/src/types.zig index 73c7bea8..330d99d2 100644 --- a/gpu/src/types.zig +++ b/gpu/src/types.zig @@ -474,6 +474,14 @@ pub const PrimitiveDepthClipControl = extern struct { unclipped_depth: bool, }; +pub const PrimitiveState = extern struct { + next_in_chain: *const ChainedStruct, + topology: PrimitiveTopology, + strip_index_format: IndexFormat, + front_face: FrontFace, + cull_mode: CullMode, +}; + test "BackendType name" { try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name()); }