From fbed4402dea71b631aa8684f48c147f1555d841d Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Mon, 11 Jul 2022 07:59:01 -0700 Subject: [PATCH] gpu: add RenderPassTimestampLocation enum Signed-off-by: Stephen Gutekanst --- gpu/TODO-webgpu.h | 6 ------ gpu/src/types.zig | 5 +++++ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/gpu/TODO-webgpu.h b/gpu/TODO-webgpu.h index 5ee1ce07..9fc9e11b 100644 --- a/gpu/TODO-webgpu.h +++ b/gpu/TODO-webgpu.h @@ -1,11 +1,5 @@ typedef uint32_t WGPUFlags; -typedef enum WGPURenderPassTimestampLocation { - WGPURenderPassTimestampLocation_Beginning = 0x00000000, - WGPURenderPassTimestampLocation_End = 0x00000001, - WGPURenderPassTimestampLocation_Force32 = 0x7FFFFFFF -} WGPURenderPassTimestampLocation; - typedef enum WGPURequestAdapterStatus { WGPURequestAdapterStatus_Success = 0x00000000, WGPURequestAdapterStatus_Unavailable = 0x00000001, diff --git a/gpu/src/types.zig b/gpu/src/types.zig index d6dacc48..4752a047 100644 --- a/gpu/src/types.zig +++ b/gpu/src/types.zig @@ -191,6 +191,11 @@ pub const QueryType = enum(u32) { timestamp = 0x00000002, }; +pub const RenderPassTimestampLocation = enum(u32) { + beginning = 0x00000000, + end = 0x00000001, +}; + test "BackendType name" { try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name()); }