gpu: add DeviceLostCallback

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-24 23:28:51 -07:00 committed by Stephen Gutekanst
parent 84f0a1c4b3
commit 9e88c8f9a8
2 changed files with 6 additions and 1 deletions

View file

@ -6,6 +6,12 @@ const QueueDescriptor = @import("queue.zig").QueueDescriptor;
pub const Device = *opaque {};
pub const DeviceLostCallback = fn (
reason: DeviceLostReason,
message: [*:0]const u8,
userdata: *anyopaque,
) callconv(.C) void;
pub const DeviceLostReason = enum(u32) {
undef = 0x00000000,
destroyed = 0x00000001,