From 051126bbf00eea24b61867f58f23e335394a04ce Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Mon, 11 Jul 2022 08:11:13 -0700 Subject: [PATCH] gpu: add StorageTextureAccess 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 58f44750..dafcaea1 100644 --- a/gpu/TODO-webgpu.h +++ b/gpu/TODO-webgpu.h @@ -1,11 +1,5 @@ typedef uint32_t WGPUFlags; -typedef enum WGPUStorageTextureAccess { - WGPUStorageTextureAccess_Undefined = 0x00000000, - WGPUStorageTextureAccess_WriteOnly = 0x00000001, - WGPUStorageTextureAccess_Force32 = 0x7FFFFFFF -} WGPUStorageTextureAccess; - typedef enum WGPUStoreOp { WGPUStoreOp_Undefined = 0x00000000, WGPUStoreOp_Store = 0x00000001, diff --git a/gpu/src/types.zig b/gpu/src/types.zig index e9f38739..571c320f 100644 --- a/gpu/src/types.zig +++ b/gpu/src/types.zig @@ -244,6 +244,11 @@ pub const StencilOperation = enum(u32) { decrement_wrap = 0x00000007, }; +pub const StorageTextureAccess = enum(u32) { + undef = 0x00000000, + write_only = 0x00000001, +}; + test "BackendType name" { try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name()); }