diff --git a/gpu/TODO-webgpu.h b/gpu/TODO-webgpu.h index 18d00e56..4f008140 100644 --- a/gpu/TODO-webgpu.h +++ b/gpu/TODO-webgpu.h @@ -1,12 +1,5 @@ typedef uint32_t WGPUFlags; -typedef enum WGPULoadOp { - WGPULoadOp_Undefined = 0x00000000, - WGPULoadOp_Clear = 0x00000001, - WGPULoadOp_Load = 0x00000002, - WGPULoadOp_Force32 = 0x7FFFFFFF -} WGPULoadOp; - typedef enum WGPULoggingType { WGPULoggingType_Verbose = 0x00000000, WGPULoggingType_Info = 0x00000001, diff --git a/gpu/src/types.zig b/gpu/src/types.zig index 63099256..208fd328 100644 --- a/gpu/src/types.zig +++ b/gpu/src/types.zig @@ -144,6 +144,12 @@ pub const IndexFormat = enum(u32) { uint32 = 0x00000002, }; +pub const LoadOp = enum(u32) { + undef = 0x00000000, + clear = 0x00000001, + load = 0x00000002, +}; + test "BackendType name" { try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name()); }