gpu: implement Dawn devicePushErrorScope

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-30 17:48:40 -07:00 committed by Stephen Gutekanst
parent 08ac8d24b2
commit 521ca45e29

View file

@ -585,9 +585,10 @@ pub const Interface = gpu.Interface(struct {
}
pub inline fn devicePushErrorScope(device: *gpu.Device, filter: gpu.ErrorFilter) void {
_ = device;
_ = filter;
unreachable;
procs.devicePushErrorScope.?(
@ptrCast(c.WGPUDevice, device),
@enumToInt(filter),
);
}
pub inline fn deviceSetDeviceLostCallback(device: *gpu.Device, callback: gpu.Device.LostCallback, userdata: *anyopaque) void {