gpu: add DeviceLostCallback
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
84f0a1c4b3
commit
9e88c8f9a8
2 changed files with 6 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue