From 82bff3e9b4ac42953b31bb309fd2fa8877012555 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sat, 16 Jul 2022 20:28:00 -0700 Subject: [PATCH] gpu: add VertexAttribute Signed-off-by: Stephen Gutekanst --- gpu/TODO-webgpu.h | 6 ------ gpu/src/types.zig | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) 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()); }