gpu: implement Dawn deviceSetLoggingCallback
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
7e7a02a83e
commit
07cf5743bd
1 changed files with 5 additions and 4 deletions
|
|
@ -604,10 +604,11 @@ pub const Interface = gpu.Interface(struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub inline fn deviceSetLoggingCallback(device: *gpu.Device, callback: gpu.LoggingCallback, userdata: *anyopaque) void {
|
pub inline fn deviceSetLoggingCallback(device: *gpu.Device, callback: gpu.LoggingCallback, userdata: *anyopaque) void {
|
||||||
_ = device;
|
procs.deviceSetLoggingCallback.?(
|
||||||
_ = callback;
|
@ptrCast(c.WGPUDevice, device),
|
||||||
_ = userdata;
|
@ptrCast(c.WGPULoggingCallback, callback),
|
||||||
unreachable;
|
userdata,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub inline fn deviceSetUncapturedErrorCallback(device: *gpu.Device, callback: gpu.ErrorCallback, userdata: *anyopaque) void {
|
pub inline fn deviceSetUncapturedErrorCallback(device: *gpu.Device, callback: gpu.ErrorCallback, userdata: *anyopaque) void {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue