From e6905241b81f1c5040ed51d5dce05f9883de67f9 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sat, 30 Jul 2022 15:04:51 -0700 Subject: [PATCH] gpu: implement Dawn adapterGetLimits 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 b08acaa6..9daf5592 100644 --- a/gpu/src/dawn_impl.zig +++ b/gpu/src/dawn_impl.zig @@ -42,9 +42,10 @@ pub const Interface = gpu.Interface(struct { } pub inline fn adapterGetLimits(adapter: *gpu.Adapter, limits: *gpu.SupportedLimits) bool { - _ = adapter; - _ = limits; - unreachable; + return procs.adapterGetLimits.?( + @ptrCast(c.WGPUAdapter, adapter), + @ptrCast(*c.WGPUSupportedLimits, limits), + ); } pub inline fn adapterGetProperties(adapter: *gpu.Adapter, properties: *gpu.Adapter.Properties) void {