gpu: add Adapter.hasFeature

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-25 21:18:16 -07:00 committed by Stephen Gutekanst
parent c3af237271
commit c9914d6d94
3 changed files with 17 additions and 5 deletions

View file

@ -24,6 +24,10 @@ pub const Adapter = *opaque {
pub inline fn getProperties(adapter: Adapter, properties: *AdapterProperties) void {
impl.adapterGetProperties(adapter, properties);
}
pub inline fn hasFeature(adapter: Adapter, feature: FeatureName) bool {
return impl.adapterHasFeature(adapter, feature);
}
};
pub const RequestDeviceCallback = fn (