| 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 |
| 142 | class 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 |
no outgoing calls