From 8742fbe902db7944ef5e4679d9f01b2d800a61c9 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sat, 30 Jul 2022 17:45:31 -0700 Subject: [PATCH] gpu: implement Dawn deviceEnumerateFeatures 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 48453586..ab6ef86d 100644 --- a/gpu/src/dawn_impl.zig +++ b/gpu/src/dawn_impl.zig @@ -540,9 +540,10 @@ pub const Interface = gpu.Interface(struct { } pub inline fn deviceEnumerateFeatures(device: *gpu.Device, features: [*]gpu.FeatureName) usize { - _ = device; - _ = features; - unreachable; + return procs.deviceEnumerateFeatures.?( + @ptrCast(c.WGPUDevice, device), + @ptrCast([*]c.WGPUFeatureName, features), + ); } pub inline fn deviceGetLimits(device: *gpu.Device, limits: *gpu.SupportedLimits) bool {