gpu: implement Dawn deviceGetLimits

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-30 17:46:01 -07:00 committed by Stephen Gutekanst
parent 8742fbe902
commit 2113767490

View file

@ -547,9 +547,10 @@ pub const Interface = gpu.Interface(struct {
}
pub inline fn deviceGetLimits(device: *gpu.Device, limits: *gpu.SupportedLimits) bool {
_ = device;
_ = limits;
unreachable;
return procs.deviceGetLimits.?(
@ptrCast(c.WGPUDevice, device),
@ptrCast(*c.WGPUSupportedLimits, limits),
);
}
pub inline fn deviceGetQueue(device: *gpu.Device) *gpu.Queue {