aboutsummaryrefslogtreecommitdiffhomepage
path: root/registry/generator.py
diff options
context:
space:
mode:
Diffstat (limited to 'registry/generator.py')
-rw-r--r--registry/generator.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/registry/generator.py b/registry/generator.py
index 56a6310..669e5d6 100644
--- a/registry/generator.py
+++ b/registry/generator.py
@@ -166,6 +166,7 @@ class GeneratorOptions:
reparentEnums=True,
sortProcedure=regSortFeatures,
requireCommandAliases=False,
+ requireDepends=True,
):
"""Constructor.
@@ -208,6 +209,11 @@ class GeneratorOptions:
or <extension> being complete. Defaults to True.
- sortProcedure - takes a list of FeatureInfo objects and sorts
them in place to a preferred order in the generated output.
+ - requireCommandAliases - if True, treat command aliases
+ as required dependencies.
+ - requireDepends - whether to follow API dependencies when emitting
+ APIs.
+
Default is
- core API versions
- Khronos (ARB/KHR/OES) extensions
@@ -295,6 +301,9 @@ class GeneratorOptions:
"""True if alias= attributes of <command> tags are transitively
required."""
+ self.requireDepends = requireDepends
+ """True if dependencies of API tags are transitively required."""
+
def emptyRegex(self, pat):
"""Substitute a regular expression which matches no version
or extension names for None or the empty string."""