gpu: implement Dawn deviceSetLoggingCallback

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-30 17:51:25 -07:00 committed by Stephen Gutekanst
parent 7e7a02a83e
commit 07cf5743bd

View file

@ -604,10 +604,11 @@ pub const Interface = gpu.Interface(struct {
}
pub inline fn deviceSetLoggingCallback(device: *gpu.Device, callback: gpu.LoggingCallback, userdata: *anyopaque) void {
_ = device;
_ = callback;
_ = userdata;
unreachable;
procs.deviceSetLoggingCallback.?(
@ptrCast(c.WGPUDevice, device),
@ptrCast(c.WGPULoggingCallback, callback),
userdata,
);
}
pub inline fn deviceSetUncapturedErrorCallback(device: *gpu.Device, callback: gpu.ErrorCallback, userdata: *anyopaque) void {