diff options
| author | Mark Lobodzinski <mark@lunarg.com> | 2016-12-27 13:50:05 -0700 |
|---|---|---|
| committer | Mark Lobodzinski <mark@lunarg.com> | 2016-12-28 07:43:53 -0700 |
| commit | 022f9006fcc51ab37cd45a5acc3b9d7b00423b48 (patch) | |
| tree | 94f910e200519a7ccb005b3b5d53923176651de4 /scripts | |
| parent | c7ab53081781db9e71a351c6323fd0c385e9a9f8 (diff) | |
| download | usermoji-022f9006fcc51ab37cd45a5acc3b9d7b00423b48.tar.xz | |
scripts: Update lvl_genvk.py w/new helper generator
Change-Id: Ib3afef2e275d2f7b4906d0ca95022aeb4fd2e674
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/lvl_genvk.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/scripts/lvl_genvk.py b/scripts/lvl_genvk.py index 22b92919..54293762 100644 --- a/scripts/lvl_genvk.py +++ b/scripts/lvl_genvk.py @@ -24,6 +24,7 @@ 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 +from helper_file_generator import HelperFileOutputGenerator, HelperFileOutputGeneratorOptions # Simple timer functions startTime = None @@ -183,6 +184,28 @@ def makeGenOpts(extensions = [], removeExtensions = [], protect = True, director alignFuncParam = 48) ] + # Options for helper file generator + genOpts['vk_enum_string_helper.h'] = [ + HelperFileOutputGenerator, + HelperFileOutputGeneratorOptions( + filename = 'vk_enum_string_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. |
