From b0682df01b03f99ddad6c753fe1c61e9f9a97fd5 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Mon, 11 Jul 2022 06:26:55 -0700 Subject: [PATCH] gpu: add ComputePassTimestampLocation 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 f1ba7313..8a6b3241 100644 --- a/gpu/TODO-webgpu.h +++ b/gpu/TODO-webgpu.h @@ -1,11 +1,5 @@ typedef uint32_t WGPUFlags; -typedef enum WGPUComputePassTimestampLocation { - WGPUComputePassTimestampLocation_Beginning = 0x00000000, - WGPUComputePassTimestampLocation_End = 0x00000001, - WGPUComputePassTimestampLocation_Force32 = 0x7FFFFFFF -} WGPUComputePassTimestampLocation; - typedef enum WGPUCreatePipelineAsyncStatus { WGPUCreatePipelineAsyncStatus_Success = 0x00000000, WGPUCreatePipelineAsyncStatus_Error = 0x00000001, diff --git a/gpu/src/types.zig b/gpu/src/types.zig index d925a935..74528058 100644 --- a/gpu/src/types.zig +++ b/gpu/src/types.zig @@ -75,3 +75,8 @@ pub const CompilationMessageType = enum(u32) { warning = 0x00000001, info = 0x00000002, }; + +pub const ComputePassTimestampLocation = enum(u32) { + beginning = 0x00000000, + end = 0x00000001, +};