mach/gpu/src/queue.zig
Stephen Gutekanst 8163a5876c gpu: add Queue.Descriptor
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-12 00:43:43 -07:00

20 lines
530 B
Zig

const ChainedStruct = @import("types.zig").ChainedStruct;
pub const Queue = enum(usize) {
_,
// TODO: verify there is a use case for nullable value of this type.
pub const none: Queue = @intToEnum(Queue, 0);
pub const WorkDoneStatus = enum(u32) {
success = 0x00000000,
err = 0x00000001,
unknown = 0x00000002,
device_lost = 0x00000003,
};
pub const Descriptor = extern struct {
next_in_chain: *const ChainedStruct,
label: ?[*:0]const u8 = null,
};
};