gpu: add BufferMapAsyncStatus enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
0ddbfaf2b3
commit
a46847559a
3 changed files with 11 additions and 353 deletions
|
|
@ -174,6 +174,15 @@ pub const BufferBindingType = enum(u32) {
|
|||
read_only_storage = 0x00000003,
|
||||
};
|
||||
|
||||
pub const BufferMapAsyncStatus = enum(u32) {
|
||||
success = 0x00000000,
|
||||
err = 0x00000001,
|
||||
unknown = 0x00000002,
|
||||
device_lost = 0x00000003,
|
||||
destroyed_before_callback = 0x00000004,
|
||||
unmapped_before_callback = 0x00000005,
|
||||
};
|
||||
|
||||
test "name" {
|
||||
try std.testing.expect(std.mem.eql(u8, @tagName(Feature.timestamp_query), "timestamp_query"));
|
||||
}
|
||||
|
|
@ -186,4 +195,5 @@ test "syntax" {
|
|||
_ = BlendFactor;
|
||||
_ = BlendOperation;
|
||||
_ = BufferBindingType;
|
||||
_ = BufferMapAsyncStatus;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue