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