gpu: add QueueWorkDoneCallback

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-24 23:31:13 -07:00 committed by Stephen Gutekanst
parent bb3ec3dc12
commit 2251a667c6
2 changed files with 5 additions and 1 deletions

View file

@ -2,6 +2,11 @@ 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,