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;