gpu: implement Dawn deviceLoseForTesting

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-30 16:31:53 -07:00 committed by Stephen Gutekanst
parent 8b7d810450
commit b2aaaba4bf

View file

@ -536,8 +536,7 @@ pub const Interface = gpu.Interface(struct {
} }
pub inline fn deviceLoseForTesting(device: *gpu.Device) void { pub inline fn deviceLoseForTesting(device: *gpu.Device) void {
_ = device; procs.deviceLoseForTesting.?(@ptrCast(c.WGPUDevice, device));
unreachable;
} }
pub inline fn devicePopErrorScope(device: *gpu.Device, callback: gpu.ErrorCallback, userdata: *anyopaque) bool { pub inline fn devicePopErrorScope(device: *gpu.Device, callback: gpu.ErrorCallback, userdata: *anyopaque) bool {