diff --git a/gpu/TODO-webgpu.h b/gpu/TODO-webgpu.h index 24b86407..d667cab4 100644 --- a/gpu/TODO-webgpu.h +++ b/gpu/TODO-webgpu.h @@ -1,10 +1,3 @@ -pub const VertexBufferLayout = extern struct { - array_stride: u64, - step_mode: VertexStepMode, - attribute_count: u32, - attributes: [*]const VertexAttribute, -}; - pub const WGPUBindGroupLayoutDescriptor = 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 ce2fb6ae..7e4029ec 100644 --- a/gpu/src/types.zig +++ b/gpu/src/types.zig @@ -577,6 +577,13 @@ pub const SupportedLimits = extern struct { limits: Limits, }; +pub const VertexBufferLayout = extern struct { + array_stride: u64, + step_mode: VertexStepMode, + attribute_count: u32, + attributes: [*]const VertexAttribute, +}; + test "BackendType name" { try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name()); }