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