gpu: make Device.setLoggingCallback friendlier
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
6f2f7056b7
commit
29cd383f0e
6 changed files with 22 additions and 15 deletions
|
|
@ -88,11 +88,11 @@ pub const Adapter = opaque {
|
|||
status,
|
||||
device,
|
||||
message,
|
||||
if (Context == void) {} orelse @ptrCast(Context, userdata),
|
||||
if (Context == void) {} else @ptrCast(Context, userdata),
|
||||
);
|
||||
}
|
||||
};
|
||||
Impl.adapterRequestDevice(adapter, descriptor, Helper.callback, if (Context == void) null orelse context);
|
||||
Impl.adapterRequestDevice(adapter, descriptor, Helper.callback, if (Context == void) null else context);
|
||||
}
|
||||
|
||||
pub inline fn reference(adapter: *Adapter) void {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue