gpu: add Adapter.hasFeature
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
c3af237271
commit
c9914d6d94
3 changed files with 17 additions and 5 deletions
|
|
@ -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 (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue