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