diff options
| author | Mark Lobodzinski <mark@lunarg.com> | 2017-10-24 13:41:18 -0600 |
|---|---|---|
| committer | Mike Schuchardt <mikes@lunarg.com> | 2018-03-09 13:54:31 -0700 |
| commit | f895bcc8a6896c5aa278c6549dab241e4eb649ef (patch) | |
| tree | 05f70594c865463bd246d08f12496608b8dc418b /scripts/parameter_validation_generator.py | |
| parent | 1966df8f8754101aa27f7dab90080bffb69f2398 (diff) | |
| download | usermoji-f895bcc8a6896c5aa278c6549dab241e4eb649ef.tar.xz | |
scripts: Update generators for 1.1
Diffstat (limited to 'scripts/parameter_validation_generator.py')
| -rw-r--r-- | scripts/parameter_validation_generator.py | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/scripts/parameter_validation_generator.py b/scripts/parameter_validation_generator.py index a6dc0972..d4cfb44f 100644 --- a/scripts/parameter_validation_generator.py +++ b/scripts/parameter_validation_generator.py @@ -25,6 +25,7 @@ import xml.etree.ElementTree as etree from generator import * from collections import namedtuple from vuid_mapping import * +from common_codegen import * # This is a workaround to use a Python 2.7 and 3.x compatible syntax. from io import open @@ -72,34 +73,27 @@ class ParameterValidationGeneratorOptions(GeneratorOptions): defaultExtensions = None, addExtensions = None, removeExtensions = None, + emitExtensions = None, sortProcedure = regSortFeatures, prefixText = "", - genFuncPointers = True, - protectFile = True, - protectFeature = True, - protectProto = None, - protectProtoStr = None, apicall = '', apientry = '', apientryp = '', indentFuncProto = True, indentFuncPointer = False, - alignFuncParam = 0): + alignFuncParam = 0, + expandEnumerants = True): GeneratorOptions.__init__(self, filename, directory, apiname, profile, versions, emitversions, defaultExtensions, - addExtensions, removeExtensions, sortProcedure) + addExtensions, removeExtensions, emitExtensions, sortProcedure) self.prefixText = prefixText - self.genFuncPointers = genFuncPointers - self.protectFile = protectFile - self.protectFeature = protectFeature - self.protectProto = protectProto - self.protectProtoStr = protectProtoStr self.apicall = apicall self.apientry = apientry self.apientryp = apientryp self.indentFuncProto = indentFuncProto self.indentFuncPointer = indentFuncPointer self.alignFuncParam = alignFuncParam + self.expandEnumerants = expandEnumerants # ParameterValidationOutputGenerator - subclass of OutputGenerator. # Generates param checker layer code. @@ -353,7 +347,7 @@ class ParameterValidationOutputGenerator(OutputGenerator): self.commands = [] self.structMembers = [] self.newFlags = set() - + self.featureExtraProtect = GetFeatureProtect(interface) # Get base list of extension dependencies for all items in this extension base_required_extensions = [] if "VK_VERSION_1" not in self.featureName: |
