diff options
| author | Mark Lobodzinski <mark@lunarg.com> | 2018-01-03 11:18:31 -0700 |
|---|---|---|
| committer | Mark Lobodzinski <mark@lunarg.com> | 2018-01-05 10:37:58 -0700 |
| commit | d98387983db4bf83cf6acc2fff86c1b19ddd1d4f (patch) | |
| tree | 776214faa6a81d40b6d136a14c0408283b7cb62b /scripts | |
| parent | 9248396c2c17462c3695ea6eaaab66fe76958faf (diff) | |
| download | usermoji-d98387983db4bf83cf6acc2fff86c1b19ddd1d4f.tar.xz | |
layers: Create instance & device extension lists
Added constant lists of device and instance extension names to
vk_extension_helper.h.
Change-Id: I4273aea866cbfea176a2631e04223ce92443caf0
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/helper_file_generator.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/helper_file_generator.py b/scripts/helper_file_generator.py index c588845f..114f47f8 100644 --- a/scripts/helper_file_generator.py +++ b/scripts/helper_file_generator.py @@ -660,6 +660,15 @@ class HelperFileOutputGenerator(OutputGenerator): struct += ' }\n' struct += '};\n' struct += '\n' + # Output reference lists of instance/device extension names + struct += 'static const char * const k%sExtensionNames = \n' % type + for ext_name, ifdef in extension_dict.items(): + if ifdef is not None: + struct += '#ifdef %s\n' % ifdef + struct += ' %s\n' % ext_name + if ifdef is not None: + struct += '#endif\n' + struct += ';\n\n' extension_helper_header += struct extension_helper_header += '\n' extension_helper_header += '#endif // VK_EXTENSION_HELPER_H_\n' |
