gpu: add LoggingCallback

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-24 23:30:32 -07:00 committed by Stephen Gutekanst
parent 73933f00a6
commit bb3ec3dc12
2 changed files with 6 additions and 1 deletions

View file

@ -21,6 +21,12 @@ pub const ErrorCallback = fn (
userdata: *anyopaque,
) callconv(.C) void;
pub const LoggingCallback = fn (
typ: LoggingType,
message: [*:0]const u8,
userdata: *anyopaque,
) callconv(.C) void;
pub const AlphaMode = enum(u32) {
premultiplied = 0x00000000,
unpremultiplied = 0x00000001,