Update for Vulkan-Docs 1.2.170
This commit is contained in:
parent
ec2db85225
commit
1d99b835ec
5 changed files with 10120 additions and 5542 deletions
|
|
@ -502,6 +502,12 @@ class OutputGenerator:
|
|||
exit(1)
|
||||
|
||||
body += self.genRequirements(name, mustBeFound = False)
|
||||
# Some C compilers only allow initializing a 'static const' variable with a literal value.
|
||||
# So initializing an alias from another 'static const' value would fail to compile.
|
||||
# Work around this by chasing the aliases to get the actual value.
|
||||
while numVal is None:
|
||||
alias = self.registry.tree.find("enums/enum[@name='" + strVal + "']")
|
||||
(numVal, strVal) = self.enumToValue(alias, True)
|
||||
body += "static const {} {} = {};\n".format(flagTypeName, name, strVal)
|
||||
|
||||
# Postfix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue