gpu: implement Dawn deviceSetDeviceLostCallback
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
521ca45e29
commit
7e7a02a83e
1 changed files with 5 additions and 4 deletions
|
|
@ -592,10 +592,11 @@ pub const Interface = gpu.Interface(struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub inline fn deviceSetDeviceLostCallback(device: *gpu.Device, callback: gpu.Device.LostCallback, userdata: *anyopaque) void {
|
pub inline fn deviceSetDeviceLostCallback(device: *gpu.Device, callback: gpu.Device.LostCallback, userdata: *anyopaque) void {
|
||||||
_ = device;
|
procs.deviceSetDeviceLostCallback.?(
|
||||||
_ = callback;
|
@ptrCast(c.WGPUDevice, device),
|
||||||
_ = userdata;
|
@ptrCast(c.WGPUDeviceLostCallback, callback),
|
||||||
unreachable;
|
userdata,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub inline fn deviceSetLabel(device: *gpu.Device, label: [*:0]const u8) void {
|
pub inline fn deviceSetLabel(device: *gpu.Device, label: [*:0]const u8) void {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue