From 7f173a0d19935f093d03710c62a2cec571fc923c Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Fri, 11 Mar 2022 15:50:31 -0700 Subject: [PATCH] gpu: move BufferMapAsyncStatus -> Buffer.MapAsyncStatus Signed-off-by: Stephen Gutekanst --- gpu/src/Buffer.zig | 10 ++++++++++ gpu/src/enums.zig | 10 ---------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/gpu/src/Buffer.zig b/gpu/src/Buffer.zig index 15a5d8e2..0abcc211 100644 --- a/gpu/src/Buffer.zig +++ b/gpu/src/Buffer.zig @@ -55,6 +55,15 @@ pub const BindingLayout = struct { min_binding_size: u64, }; +pub const MapAsyncStatus = enum(u32) { + success = 0x00000000, + err = 0x00000001, + unknown = 0x00000002, + device_lost = 0x00000003, + destroyed_before_callback = 0x00000004, + unmapped_before_callback = 0x00000005, +}; + test "syntax" { _ = VTable; _ = reference; @@ -64,4 +73,5 @@ test "syntax" { _ = Descriptor; _ = BindingType; _ = BindingLayout; + _ = MapAsyncStatus; } diff --git a/gpu/src/enums.zig b/gpu/src/enums.zig index 32d28311..55c21518 100644 --- a/gpu/src/enums.zig +++ b/gpu/src/enums.zig @@ -57,15 +57,6 @@ pub const BlendOperation = enum(u32) { max = 0x00000004, }; -pub const BufferMapAsyncStatus = enum(u32) { - success = 0x00000000, - err = 0x00000001, - unknown = 0x00000002, - device_lost = 0x00000003, - destroyed_before_callback = 0x00000004, - unmapped_before_callback = 0x00000005, -}; - pub const CompareFunction = enum(u32) { none = 0x00000000, never = 0x00000001, @@ -343,7 +334,6 @@ test "syntax" { _ = AlphaMode; _ = BlendFactor; _ = BlendOperation; - _ = BufferMapAsyncStatus; _ = CompareFunction; _ = CompilationInfoRequestStatus; _ = CompilationMessageType;