From 2113767490ea1db457589005f7efb33fb91ee810 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sat, 30 Jul 2022 17:46:01 -0700 Subject: [PATCH] gpu: implement Dawn deviceGetLimits Signed-off-by: Stephen Gutekanst --- gpu/src/dawn_impl.zig | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gpu/src/dawn_impl.zig b/gpu/src/dawn_impl.zig index ab6ef86d..b5511a57 100644 --- a/gpu/src/dawn_impl.zig +++ b/gpu/src/dawn_impl.zig @@ -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 {