gpu: implement Dawn adapterHasFeature

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-30 15:06:39 -07:00 committed by Stephen Gutekanst
parent 7a2e0c4618
commit e07e441f0c

View file

@ -56,9 +56,10 @@ pub const Interface = gpu.Interface(struct {
}
pub inline fn adapterHasFeature(adapter: *gpu.Adapter, feature: gpu.FeatureName) bool {
_ = adapter;
_ = feature;
unreachable;
return procs.adapterHasFeature.?(
@ptrCast(c.WGPUAdapter, adapter),
@enumToInt(feature),
);
}
pub inline fn adapterRequestDevice(adapter: *gpu.Adapter, descriptor: ?*const gpu.Device.Descriptor, callback: gpu.RequestDeviceCallback, userdata: *anyopaque) void {