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