Update for Vulkan-Docs 1.3.271
This commit is contained in:
parent
7d92fe7b68
commit
9d27c893cd
17 changed files with 272 additions and 267 deletions
|
|
@ -50,9 +50,21 @@ class VulkanConventions(ConventionsBase):
|
|||
"""Preferred spelling of NULL."""
|
||||
return '`NULL`'
|
||||
|
||||
def formatVersion(self, name, apivariant, major, minor):
|
||||
"""Mark up an API version name as a link in the spec."""
|
||||
version = f'{major}.{minor}'
|
||||
if apivariant == 'VKSC':
|
||||
# Vulkan SC has a different anchor pattern for version appendices
|
||||
if version == '1.0':
|
||||
return 'Vulkan SC 1.0'
|
||||
else:
|
||||
return f'<<versions-sc-{version}, Version SC {version}>>'
|
||||
else:
|
||||
return f'<<versions-{version}, Version {version}>>'
|
||||
|
||||
def formatExtension(self, name):
|
||||
"""Mark up an extension name as a link the spec."""
|
||||
return '`apiext:{}`'.format(name)
|
||||
"""Mark up an extension name as a link in the spec."""
|
||||
return f'apiext:{name}'
|
||||
|
||||
@property
|
||||
def struct_macro(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue