gpu: correctly allow unsetting Device.setLoggingCallback
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
2007542231
commit
ae5bb78e09
3 changed files with 16 additions and 12 deletions
|
|
@ -611,7 +611,7 @@ pub const Interface = struct {
|
|||
procs.deviceSetLabel.?(@ptrCast(c.WGPUDevice, device), label);
|
||||
}
|
||||
|
||||
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 {
|
||||
procs.deviceSetLoggingCallback.?(
|
||||
@ptrCast(c.WGPUDevice, device),
|
||||
@ptrCast(c.WGPULoggingCallback, callback),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue