diff options
author | Jon Leech <[email protected]> | 2022-06-30 03:47:24 -0700 |
---|---|---|
committer | Jon Leech <[email protected]> | 2022-06-30 03:48:11 -0700 |
commit | 2c823b7f27590ec0a489f7fbe14b154e13fa5cfb (patch) | |
tree | 44fb044c3b5a0b3d140b1980ecd50dd1cc677d39 /registry/reg.py | |
parent | 3be1df310be8963c29125c35fce25ee0af12ff70 (diff) | |
download | Vulkan-Headers-2c823b7f27590ec0a489f7fbe14b154e13fa5cfb.tar.gz Vulkan-Headers-2c823b7f27590ec0a489f7fbe14b154e13fa5cfb.zip |
Update for Vulkan-Docs 1.3.219v1.3.219
Diffstat (limited to 'registry/reg.py')
-rw-r--r-- | registry/reg.py | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/registry/reg.py b/registry/reg.py index 317d583..540697f 100644 --- a/registry/reg.py +++ b/registry/reg.py @@ -1579,7 +1579,7 @@ class Registry: limittypeDiags = namedtuple('limittypeDiags', ['missing', 'invalid']) badFields = defaultdict(lambda : limittypeDiags(missing=[], invalid=[])) - validLimittypes = { 'min', 'max', 'bitmask', 'range', 'struct', 'noauto' } + validLimittypes = { 'min', 'max', 'pot', 'mul', 'bits', 'bitmask', 'range', 'struct', 'exact', 'noauto' } for member in struct.getMembers(): memberName = member.findtext('name') if memberName in ['sType', 'pNext']: @@ -1593,8 +1593,10 @@ class Registry: typeName = member.findtext('type') memberType = self.typedict[typeName] badFields.update(self.__validateStructLimittypes(memberType, requiredLimittype)) - elif limittype not in validLimittypes: - badFields[struct.elem.get('name')].invalid.append(memberName) + else: + for value in limittype.split(','): + if value not in validLimittypes: + badFields[struct.elem.get('name')].invalid.append(memberName) return badFields @@ -1603,13 +1605,15 @@ class Registry: # Structures explicitly allowed to have 'limittype' attributes allowedStructs = set(( + 'VkFormatProperties', + 'VkFormatProperties2', 'VkPhysicalDeviceProperties', 'VkPhysicalDeviceProperties2', 'VkPhysicalDeviceLimits', - 'VkFormatProperties', - 'VkFormatProperties2', 'VkQueueFamilyProperties', 'VkQueueFamilyProperties2', + 'VkSparseImageFormatProperties', + 'VkSparseImageFormatProperties2', )) # Substructures of allowed structures. This can be found by looking # at tags, but there are so few cases that it is hardwired for now. @@ -1618,6 +1622,7 @@ class Registry: 'VkPhysicalDeviceSparseProperties', 'VkPhysicalDeviceProperties', 'VkQueueFamilyProperties', + 'VkSparseImageFormatProperties', )) # Structures all of whose (non pNext/sType) members are required to # have 'limittype' attributes, as are their descendants @@ -1625,6 +1630,8 @@ class Registry: 'VkPhysicalDeviceProperties', 'VkPhysicalDeviceProperties2', 'VkPhysicalDeviceLimits', + 'VkSparseImageFormatProperties', + 'VkSparseImageFormatProperties2', )) # Checks all structures, so accumulate a valid/invalid flag |