gpu: implement Dawn adapterGetProperties

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

View file

@ -49,9 +49,10 @@ pub const Interface = gpu.Interface(struct {
}
pub inline fn adapterGetProperties(adapter: *gpu.Adapter, properties: *gpu.Adapter.Properties) void {
_ = adapter;
_ = properties;
unreachable;
return procs.adapterGetProperties.?(
@ptrCast(c.WGPUAdapter, adapter),
@ptrCast(*c.WGPUAdapterProperties, properties),
);
}
pub inline fn adapterHasFeature(adapter: *gpu.Adapter, feature: gpu.FeatureName) bool {