mach/gpu/src/queue.zig
Stephen Gutekanst 2251a667c6 gpu: add QueueWorkDoneCallback
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-12 00:43:43 -07:00

20 lines
484 B
Zig

const ChainedStruct = @import("types.zig").ChainedStruct;
pub const Queue = *opaque {};
pub const QueueWorkDoneCallback = fn (
status: QueueWorkDoneStatus,
userdata: *anyopaque,
) callconv(.C) void;
pub const QueueWorkDoneStatus = enum(u32) {
success = 0x00000000,
err = 0x00000001,
unknown = 0x00000002,
device_lost = 0x00000003,
};
pub const QueueDescriptor = extern struct {
next_in_chain: *const ChainedStruct,
label: ?[*:0]const u8 = null,
};