MCPcopy
hub / github.com/KhronosGroup/Vulkan-Docs / BaseGeneratorOptions

Class BaseGeneratorOptions

scripts/base_generator.py:142–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140# After years of use, it has shown that most the options are unified across each generator (file)
141# as it is easier to modify things per-file that need the difference
142class BaseGeneratorOptions(GeneratorOptions):
143 def __init__(self,
144 customFileName = None,
145 customDirectory = None,
146 customApiName = None,
147 videoXmlPath = None):
148 apiName = customApiName if customApiName else globalApiName
149 GeneratorOptions.__init__(self,
150 conventions = getConventionsForApi(apiName),
151 filename = customFileName if customFileName else globalFileName,
152 directory = customDirectory if customDirectory else globalDirectory,
153 apiname = apiName,
154 mergeApiNames = mergedApiNames,
155 defaultExtensions = apiName,
156 emitExtensions = '.*',
157 emitSpirv = '.*',
158 emitFormats = '.*')
159 # These are used by the generator.py script
160 self.apicall = 'VKAPI_ATTR '
161 self.apientry = 'VKAPI_CALL '
162 self.apientryp = 'VKAPI_PTR *'
163 self.alignFuncParam = 48
164
165 # This is used to provide the video.xml to the private video XML generator
166 self.videoXmlPath = videoXmlPath
167
168#
169# This object handles all the parsing from reg.py generator scripts in the Vulkan-Headers

Callers 5

testVulkanObjectFunction · 0.85
testVulkanObjectSCFunction · 0.85

Calls

no outgoing calls

Tested by 4

testVulkanObjectFunction · 0.68
testVulkanObjectSCFunction · 0.68