diff --git a/gpu/TODO-webgpu.h b/gpu/TODO-webgpu.h index d34a1103..b8cbf66f 100644 --- a/gpu/TODO-webgpu.h +++ b/gpu/TODO-webgpu.h @@ -1,9 +1,3 @@ -pub const VertexAttribute = extern struct { - format: VertexFormat, - offset: u64, - shader_location: u32, -}; - pub const WGPUBindGroupDescriptor = 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 b724826e..c9dfb488 100644 --- a/gpu/src/types.zig +++ b/gpu/src/types.zig @@ -503,6 +503,12 @@ pub const StorageTextureBindingLayout = extern struct { view_dimension: TextureView.Dimension, }; +pub const VertexAttribute = extern struct { + format: VertexFormat, + offset: u64, + shader_location: u32, +}; + test "BackendType name" { try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name()); }