diff --git a/gpu/TODO-webgpu.h b/gpu/TODO-webgpu.h index b206205a..6ae0ab36 100644 --- a/gpu/TODO-webgpu.h +++ b/gpu/TODO-webgpu.h @@ -1,9 +1,3 @@ -typedef struct WGPUBlendComponent { - WGPUBlendOperation operation; - WGPUBlendFactor srcFactor; - WGPUBlendFactor dstFactor; -} WGPUBlendComponent; - typedef struct WGPUBufferBindingLayout { WGPUChainedStruct const * nextInChain; WGPUBufferBindingType type; diff --git a/gpu/src/types.zig b/gpu/src/types.zig index 90b35c01..a72cfce5 100644 --- a/gpu/src/types.zig +++ b/gpu/src/types.zig @@ -374,6 +374,12 @@ pub const ChainedStructOut = extern struct { s_type: SType, }; +pub const BlendComponent = extern struct { + operation: BlendOperation = .add, + src_factor: BlendFactor = .one, + dst_factor: BlendFactor = .zero, +}; + test "BackendType name" { try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name()); }