From b01a770355a7ad7c67c8f14e5f948f451efac3b2 Mon Sep 17 00:00:00 2001 From: Mark Lobodzinski Date: Mon, 14 Aug 2017 15:26:30 -0600 Subject: header: Update to version 1.0.58 of the vulkan hdr - updated vulkan.h - updated vk.xml - updated cgenerator.py - updated Win/Lin json files - updated vulkan.hpp - updated vk_validation_error_messages.h - updated vk_validation_error_database.h Change-Id: I8c525b6a2bd69914440c6d7984a67446b27e6c23 --- scripts/cgenerator.py | 7 +++++++ scripts/vk.xml | 42 +++++++++++++++++++++++++++++++++++++++--- 2 files changed, 46 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/cgenerator.py b/scripts/cgenerator.py index 836de52d..534e024f 100644 --- a/scripts/cgenerator.py +++ b/scripts/cgenerator.py @@ -305,6 +305,13 @@ class COutputGenerator(OutputGenerator): (numVal,strVal) = self.enumToValue(elem, True) name = elem.get('name') + # Check for duplicate enum values and raise an error if found. + for elem2 in groupElem.findall('enum'): + if (elem != elem2): + (numVal2,strVal2) = self.enumToValue(elem2, True) + if (numVal2 == numVal): + raise UserWarning('Duplicate enum ' + name + ' = ' + elem2.get('name') + ' = ' + strVal) + # Extension enumerants are only included if they are required if (self.isEnumRequired(elem)): body += " " + name + " = " + strVal + ",\n" diff --git a/scripts/vk.xml b/scripts/vk.xml index 85a49afb..7c5f258a 100644 --- a/scripts/vk.xml +++ b/scripts/vk.xml @@ -106,7 +106,7 @@ private version is maintained in the 1.0 branch of the member gitlab server. // Vulkan 1.0 version number #define VK_API_VERSION_1_0 VK_MAKE_VERSION(1, 0, 0)// Patch version should always be set to 0 // Version of this file -#define VK_HEADER_VERSION 57 +#define VK_HEADER_VERSION 58 #define VK_DEFINE_HANDLE(object) typedef struct object##_T* object; @@ -6218,7 +6218,7 @@ private version is maintained in the 1.0 branch of the member gitlab server. - + @@ -6629,7 +6629,7 @@ private version is maintained in the 1.0 branch of the member gitlab server. - + @@ -6922,5 +6922,41 @@ private version is maintained in the 1.0 branch of the member gitlab server. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3