From 6e0c71f121e14d15c19603f68e4afdbc8a70e17d Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Mon, 11 Jul 2022 06:29:36 -0700 Subject: [PATCH] gpu: add CreatePipelineAsyncStatus enum Signed-off-by: Stephen Gutekanst --- gpu/TODO-webgpu.h | 9 --------- gpu/src/types.zig | 8 ++++++++ 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/gpu/TODO-webgpu.h b/gpu/TODO-webgpu.h index 8a6b3241..b5145d58 100644 --- a/gpu/TODO-webgpu.h +++ b/gpu/TODO-webgpu.h @@ -1,14 +1,5 @@ typedef uint32_t WGPUFlags; -typedef enum WGPUCreatePipelineAsyncStatus { - WGPUCreatePipelineAsyncStatus_Success = 0x00000000, - WGPUCreatePipelineAsyncStatus_Error = 0x00000001, - WGPUCreatePipelineAsyncStatus_DeviceLost = 0x00000002, - WGPUCreatePipelineAsyncStatus_DeviceDestroyed = 0x00000003, - WGPUCreatePipelineAsyncStatus_Unknown = 0x00000004, - WGPUCreatePipelineAsyncStatus_Force32 = 0x7FFFFFFF -} WGPUCreatePipelineAsyncStatus; - typedef enum WGPUCullMode { WGPUCullMode_None = 0x00000000, WGPUCullMode_Front = 0x00000001, diff --git a/gpu/src/types.zig b/gpu/src/types.zig index 74528058..b5032270 100644 --- a/gpu/src/types.zig +++ b/gpu/src/types.zig @@ -80,3 +80,11 @@ pub const ComputePassTimestampLocation = enum(u32) { beginning = 0x00000000, end = 0x00000001, }; + +pub const CreatePipelineAsyncStatus = enum(u32) { + success = 0x00000000, + err = 0x00000001, + device_lost = 0x00000002, + device_destroyed = 0x00000003, + unknown = 0x00000004, +};