From 1632a5305e77e7229770e2011ef7c0665c90e016 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sat, 16 Jul 2022 21:03:54 -0700 Subject: [PATCH] gpu: add VertexState Signed-off-by: Stephen Gutekanst --- gpu/TODO-webgpu.h | 10 ---------- gpu/src/types.zig | 10 ++++++++++ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/gpu/TODO-webgpu.h b/gpu/TODO-webgpu.h index eb90309c..72d7e82c 100644 --- a/gpu/TODO-webgpu.h +++ b/gpu/TODO-webgpu.h @@ -1,13 +1,3 @@ -pub const VertexState = extern struct { - next_in_chain: *const ChainedStruct, - module: ShaderModule, - entry_point: [*:0]const u8, - constant_count: u32, - constants: [*]const ConstantEntry, - buffer_count: u32, - buffers: [*]const VertexBufferLayout, -}; - pub const FragmentState = extern struct { next_in_chain: *const ChainedStruct, module: ShaderModule, diff --git a/gpu/src/types.zig b/gpu/src/types.zig index 833df148..06db9058 100644 --- a/gpu/src/types.zig +++ b/gpu/src/types.zig @@ -591,6 +591,16 @@ pub const ColorTargetState = extern struct { write_mask: ColorWriteMaskFlags, }; +pub const VertexState = extern struct { + next_in_chain: *const ChainedStruct, + module: ShaderModule, + entry_point: [*:0]const u8, + constant_count: u32, + constants: [*]const ConstantEntry, + buffer_count: u32, + buffers: [*]const VertexBufferLayout, +}; + test "BackendType name" { try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name()); }