gpu: improve how limits are represented

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-07 22:55:24 -07:00 committed by Stephen Gutekanst
parent 070126b85d
commit 39ab0105a9
6 changed files with 36 additions and 25 deletions

View file

@ -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" {