gpu: improve how limits are represented
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
070126b85d
commit
39ab0105a9
6 changed files with 36 additions and 25 deletions
|
|
@ -7,6 +7,7 @@
|
|||
//! https://gpuweb.github.io/gpuweb/#devices
|
||||
//! https://gpuweb.github.io/gpuweb/#gpuadapter
|
||||
const FeatureName = @import("feature_name.zig").FeatureName;
|
||||
const Limits = @import("Limits.zig");
|
||||
|
||||
const Device = @This();
|
||||
|
||||
|
|
@ -56,8 +57,7 @@ pub const VTable = struct {
|
|||
pub const Descriptor = struct {
|
||||
label: ?[]const u8 = null,
|
||||
required_features: ?[]FeatureName = null,
|
||||
// TODO:
|
||||
//required_limits: ?RequiredLimits = null,
|
||||
required_limits: ?Limits = null,
|
||||
};
|
||||
|
||||
test "syntax" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue