aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMark Lobodzinski <mark@lunarg.com>2017-04-03 16:59:15 -0600
committerMark Lobodzinski <mark@lunarg.com>2017-04-05 12:08:01 -0600
commitc7995f5cb12f07d46047970afab67d0ec86463f8 (patch)
tree822027d32852d404a9bc11b534674aa73665647f /scripts
parent345dda1a3df50c01bc69ca1dcf840aed95b39994 (diff)
downloadusermoji-c7995f5cb12f07d46047970afab67d0ec86463f8.tar.xz
scripts: Add object_type header file gen interface
Change-Id: I2e4a9be203f13daccc5674d0b8f66729046af46c
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lvl_genvk.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/scripts/lvl_genvk.py b/scripts/lvl_genvk.py
index 0789b66c..eab932ff 100644
--- a/scripts/lvl_genvk.py
+++ b/scripts/lvl_genvk.py
@@ -357,6 +357,29 @@ def makeGenOpts(extensions = [], removeExtensions = [], protect = True, director
helper_file_type = 'safe_struct_source')
]
+ # Helper file generator options for vk_object_types.h
+ genOpts['vk_object_types.h'] = [
+ HelperFileOutputGenerator,
+ HelperFileOutputGeneratorOptions(
+ filename = 'vk_object_types.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,
+ helper_file_type = 'object_types_header')
+ ]
+
+
# 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