Update for Vulkan-Docs 1.4.321
This commit is contained in:
parent
16cedde356
commit
2cd90f9d20
19 changed files with 179987 additions and 139944 deletions
|
|
@ -125,6 +125,19 @@ class APISpecific:
|
|||
nameString = f'"{name}"'
|
||||
return Version(name, nameString, nameApi)
|
||||
|
||||
# TODO - Currently genType in reg.py does not provide a good way to get this string to apply the C-macro
|
||||
# We do our best to emulate the answer here the way the spec/headers will with goal to have a proper fix before these assumptions break
|
||||
@staticmethod
|
||||
def createHeaderVersion(targetApiName: str, vk: VulkanObject) -> str:
|
||||
match targetApiName:
|
||||
case 'vulkan':
|
||||
major_version = 1
|
||||
minor_version = 4
|
||||
case 'vulkansc':
|
||||
major_version = 1
|
||||
minor_version = 0
|
||||
return f'{major_version}.{minor_version}.{vk.headerVersion}'
|
||||
|
||||
|
||||
# This Generator Option is used across all generators.
|
||||
# After years of use, it has shown that most the options are unified across each generator (file)
|
||||
|
|
@ -417,6 +430,8 @@ class BaseGenerator(OutputGenerator):
|
|||
|
||||
self.addConstants()
|
||||
|
||||
self.vk.headerVersionComplete = APISpecific.createHeaderVersion(self.targetApiName, self.vk)
|
||||
|
||||
# Use structs and commands to find which things are returnedOnly
|
||||
for struct in [x for x in self.vk.structs.values() if not x.returnedOnly]:
|
||||
for enum in [self.vk.enums[x.type] for x in struct.members if x.type in self.vk.enums]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue