expose Engine->getSupportedFeatureLevel()

This commit is contained in:
Nick Fisher
2025-07-01 10:07:10 +08:00
parent b3b0e2bae1
commit 0b18caf4ff
4 changed files with 37 additions and 1 deletions

View File

@@ -25,4 +25,14 @@ enum Backend {
4 => NOOP,
_ => throw ArgumentError("Unknown value for TBackend: $value"),
};
}
}
enum FeatureLevel {
FeatureLevel0(0),
FeatureLevel1(1),
FeatureLevel2(2),
FeatureLevel3(3);
final int value;
const FeatureLevel(this.value);
}