gpu: add Adapter.getProperties

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-24 22:55:51 -07:00 committed by Stephen Gutekanst
parent 2b7241be0a
commit 6ea76e770f
3 changed files with 14 additions and 4 deletions

View file

@ -19,6 +19,10 @@ pub const Adapter = *opaque {
pub inline fn getLimits(adapter: Adapter, limits: *SupportedLimits) bool {
return impl.adapterGetLimits(adapter, limits);
}
pub inline fn getProperties(adapter: Adapter, properties: *AdapterProperties) void {
impl.adapterGetProperties(adapter, properties);
}
};
pub const AdapterType = enum(u32) {