gpu: move BufferMapAsyncStatus -> Buffer.MapAsyncStatus

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-11 15:50:31 -07:00 committed by Stephen Gutekanst
parent 3761f37234
commit 7f173a0d19
2 changed files with 10 additions and 10 deletions

View file

@ -55,6 +55,15 @@ pub const BindingLayout = struct {
min_binding_size: u64, 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" { test "syntax" {
_ = VTable; _ = VTable;
_ = reference; _ = reference;
@ -64,4 +73,5 @@ test "syntax" {
_ = Descriptor; _ = Descriptor;
_ = BindingType; _ = BindingType;
_ = BindingLayout; _ = BindingLayout;
_ = MapAsyncStatus;
} }

View file

@ -57,15 +57,6 @@ pub const BlendOperation = enum(u32) {
max = 0x00000004, 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) { pub const CompareFunction = enum(u32) {
none = 0x00000000, none = 0x00000000,
never = 0x00000001, never = 0x00000001,
@ -343,7 +334,6 @@ test "syntax" {
_ = AlphaMode; _ = AlphaMode;
_ = BlendFactor; _ = BlendFactor;
_ = BlendOperation; _ = BlendOperation;
_ = BufferMapAsyncStatus;
_ = CompareFunction; _ = CompareFunction;
_ = CompilationInfoRequestStatus; _ = CompilationInfoRequestStatus;
_ = CompilationMessageType; _ = CompilationMessageType;