From c7995f5cb12f07d46047970afab67d0ec86463f8 Mon Sep 17 00:00:00 2001 From: Mark Lobodzinski Date: Mon, 3 Apr 2017 16:59:15 -0600 Subject: [PATCH] scripts: Add object_type header file gen interface Change-Id: I2e4a9be203f13daccc5674d0b8f66729046af46c --- scripts/lvl_genvk.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/scripts/lvl_genvk.py b/scripts/lvl_genvk.py index 0789b66..eab932f 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 -- 2.7.4