diff options
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/lvl_genvk.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/scripts/lvl_genvk.py b/scripts/lvl_genvk.py index 8fa7c1bf..63b8bab8 100644 --- a/scripts/lvl_genvk.py +++ b/scripts/lvl_genvk.py @@ -23,6 +23,7 @@ from generator import write from threading_generator import ThreadGeneratorOptions, ThreadOutputGenerator from parameter_validation_generator import ParamCheckerGeneratorOptions, ParamCheckerOutputGenerator from unique_objects_generator import UniqueObjectsGeneratorOptions, UniqueObjectsOutputGenerator +from dispatch_table_generator import DispatchTableOutputGenerator, DispatchTableOutputGeneratorOptions # Simple timer functions startTime = None @@ -160,6 +161,30 @@ def makeGenOpts(extensions = [], protect = True, directory = '.'): alignFuncParam = 48) ] + + # Options for dispatch table helper generator + genOpts['vk_dispatch_table_helper.h'] = [ + DispatchTableOutputGenerator, + DispatchTableOutputGeneratorOptions( + filename = 'vk_dispatch_table_helper.h', + directory = directory, + apiname = 'vulkan', + profile = None, + versions = allVersions, + emitversions = allVersions, + defaultExtensions = 'vulkan', + addExtensions = addExtensions, + removeExtensions = removeExtensions, + prefixText = prefixStrings + vkPrefixStrings, + protectFeature = False, + apicall = 'VKAPI_ATTR ', + apientry = 'VKAPI_CALL ', + apientryp = 'VKAPI_PTR *', + alignFuncParam = 48) + ] + + + # Generate a target based on the options in the matching genOpts{} object. # This is encapsulated in a function so it can be profiled and/or timed. # The args parameter is an parsed argument object containing the following |
