gpu: implement Dawn deviceGetQueue

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-30 16:33:14 -07:00 committed by Stephen Gutekanst
parent b2aaaba4bf
commit 3ea6cb90de

View file

@ -518,8 +518,7 @@ pub const Interface = gpu.Interface(struct {
}
pub inline fn deviceGetQueue(device: *gpu.Device) *gpu.Queue {
_ = device;
unreachable;
return @ptrCast(*gpu.Queue, procs.deviceGetQueue.?(@ptrCast(c.WGPUDevice, device)));
}
pub inline fn deviceHasFeature(device: *gpu.Device, feature: gpu.FeatureName) bool {