Skip to content

Commit a8ad725

Browse files
committed
Update Vulkan headers to 1.4.318
Includes updating generator to parse latest XML which has some changes for marking deprecated commands that we need to handle. Includes regenerating the common code to use the latest XML.
1 parent e5acb50 commit a8ad725

File tree

8 files changed

+1682
-156
lines changed

8 files changed

+1682
-156
lines changed

generator/generate_vulkan_common.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,18 @@ def load_api_core_versions(self, root: ET.Element):
141141
api_version = feature.get('number')
142142

143143
# Get the commands added in this API version
144-
commands = feature.findall('.//command')
145-
for command in commands:
146-
fname = command.get('name')
147-
assert fname not in self, fname
148-
self[fname] = [(api_version, None)]
144+
parents = feature.findall(".//command/..")
145+
for parent in parents:
146+
# Skip functions in deprecated blocks
147+
if parent.tag == 'deprecate':
148+
continue
149+
150+
# Include all of the other blocks
151+
commands = parent.findall("command")
152+
for command in commands:
153+
fname = command.get('name')
154+
assert fname not in self, fname
155+
self[fname] = [(api_version, None)]
149156

150157
def load_api_extensions(self, root: ET.Element):
151158
'''

source_common/framework/device_dispatch_table.hpp

Lines changed: 123 additions & 6 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)