diff --git a/gpu/TODO-webgpu.h b/gpu/TODO-webgpu.h index e3ceb6b7..c2f1539b 100644 --- a/gpu/TODO-webgpu.h +++ b/gpu/TODO-webgpu.h @@ -1,14 +1,5 @@ typedef uint32_t WGPUFlags; -typedef enum WGPUBlendOperation { - WGPUBlendOperation_Add = 0x00000000, - WGPUBlendOperation_Subtract = 0x00000001, - WGPUBlendOperation_ReverseSubtract = 0x00000002, - WGPUBlendOperation_Min = 0x00000003, - WGPUBlendOperation_Max = 0x00000004, - WGPUBlendOperation_Force32 = 0x7FFFFFFF -} WGPUBlendOperation; - typedef enum WGPUBufferBindingType { WGPUBufferBindingType_Undefined = 0x00000000, WGPUBufferBindingType_Uniform = 0x00000001, diff --git a/gpu/src/types.zig b/gpu/src/types.zig index e1e392a7..9acedadc 100644 --- a/gpu/src/types.zig +++ b/gpu/src/types.zig @@ -42,3 +42,11 @@ pub const BlendFactor = enum(u32) { constant = 0x0000000B, one_minus_constant = 0x0000000C, }; + +pub const BlendOperation = enum(u32) { + add = 0x00000000, + subtract = 0x00000001, + reverse_subtract = 0x00000002, + min = 0x00000003, + max = 0x00000004, +};