gpu: implement Dawn deviceEnumerateFeatures

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

View file

@ -540,9 +540,10 @@ pub const Interface = gpu.Interface(struct {
} }
pub inline fn deviceEnumerateFeatures(device: *gpu.Device, features: [*]gpu.FeatureName) usize { pub inline fn deviceEnumerateFeatures(device: *gpu.Device, features: [*]gpu.FeatureName) usize {
_ = device; return procs.deviceEnumerateFeatures.?(
_ = features; @ptrCast(c.WGPUDevice, device),
unreachable; @ptrCast([*]c.WGPUFeatureName, features),
);
} }
pub inline fn deviceGetLimits(device: *gpu.Device, limits: *gpu.SupportedLimits) bool { pub inline fn deviceGetLimits(device: *gpu.Device, limits: *gpu.SupportedLimits) bool {