scripts: Tweak extension detection
authorMike Schuchardt <mikes@lunarg.com>
Tue, 22 Oct 2019 04:21:35 +0000 (21:21 -0700)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Wed, 15 Jan 2020 23:19:54 +0000 (16:19 -0700)
Use tag name instead of feature name

Change-Id: I4b14b7eb30fe53920a630f8b21a816fbf57c4488

scripts/vulkan_tools_helper_file_generator.py

index ca5b240..0b0153f 100644 (file)
@@ -161,7 +161,7 @@ class HelperFileOutputGenerator(OutputGenerator):
         OutputGenerator.beginFeature(self, interface, emit)
         self.featureExtraProtect = GetFeatureProtect(interface)
 
-        if self.featureName == 'VK_VERSION_1_0' or self.featureName == 'VK_VERSION_1_1':
+        if interface.tag != 'extension':
             return
         name = self.featureName
         nameElem = interface[0][1]