scripts: Ignore compatibility constants in wrapper
authorMike Schuchardt <mikes@lunarg.com>
Wed, 15 Sep 2021 15:53:19 +0000 (08:53 -0700)
committerMike Schuchardt <mikes@lunarg.com>
Wed, 15 Sep 2021 17:29:01 +0000 (10:29 -0700)
commita12d15bd45312fb6d3c3d20bf686fdc695483e66
tree5847136e2f4ff00c65bdfeec9b7d77c600183844
parentf4974ccd170cf2338c0582f607af5d8dfc3dac51
scripts: Ignore compatibility constants in wrapper

When the working group changes the name of a constant:

  VK_KHR_MAINTENANCE1_SPEC_VERSION ->
  VK_KHR_MAINTENANCE_1_SPEC_VERSION

they will still #define the original name to maintain backward
compatibility with existing code that uses it:

  #define VK_KHR_MAINTENANCE_1_SPEC_VERSION 2
  #define VK_KHR_MAINTENANCE_1_EXTENSION_NAME "VK_KHR_maintenance1"
  #define VK_KHR_MAINTENANCE1_SPEC_VERSION  VK_KHR_MAINTENANCE_1_SPEC_VERSION
  #define VK_KHR_MAINTENANCE1_EXTENSION_NAME VK_KHR_MAINTENANCE_1_EXTENSION_NAME

In this case, we need to ignore the non-numeric _SPEC_VERSION and
unquoted _EXTENSION_NAME constants because they don't define a separate
extension.
scripts/generate_vulkan_wrapper.py