diff --git a/gpu/TODO-webgpu.h b/gpu/TODO-webgpu.h index 19d43fb6..4249c836 100644 --- a/gpu/TODO-webgpu.h +++ b/gpu/TODO-webgpu.h @@ -1,8 +1,3 @@ -pub const BlendState = extern struct { - color: BlendComponent, - alpha: BlendComponent, -}; - pub const CompilationInfo = extern struct { next_in_chain: *const ChainedStruct, message_count: u32, diff --git a/gpu/src/types.zig b/gpu/src/types.zig index 6c1c07dc..0b740f78 100644 --- a/gpu/src/types.zig +++ b/gpu/src/types.zig @@ -509,6 +509,11 @@ pub const VertexAttribute = extern struct { shader_location: u32, }; +pub const BlendState = extern struct { + color: BlendComponent, + alpha: BlendComponent, +}; + test "BackendType name" { try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name()); }