gpu: add Adapter.getLimits
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
60496259b2
commit
2b7241be0a
3 changed files with 61 additions and 11 deletions
|
|
@ -3,6 +3,7 @@ const ChainedStructOut = @import("types.zig").ChainedStructOut;
|
|||
const Device = @import("device.zig").Device;
|
||||
const DeviceDescriptor = @import("device.zig").DeviceDescriptor;
|
||||
const FeatureName = @import("types.zig").FeatureName;
|
||||
const SupportedLimits = @import("types.zig").SupportedLimits;
|
||||
const impl = @import("interface.zig").impl;
|
||||
|
||||
pub const Adapter = *opaque {
|
||||
|
|
@ -14,6 +15,10 @@ pub const Adapter = *opaque {
|
|||
pub inline fn enumerateFeatures(adapter: Adapter, features: ?[*]FeatureName) usize {
|
||||
return impl.adapterEnumerateFeatures(adapter, features);
|
||||
}
|
||||
|
||||
pub inline fn getLimits(adapter: Adapter, limits: *SupportedLimits) bool {
|
||||
return impl.adapterGetLimits(adapter, limits);
|
||||
}
|
||||
};
|
||||
|
||||
pub const AdapterType = enum(u32) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue