aboutsummaryrefslogtreecommitdiffhomepage
path: root/registry/vkconventions.py
diff options
context:
space:
mode:
Diffstat (limited to 'registry/vkconventions.py')
-rw-r--r--registry/vkconventions.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/registry/vkconventions.py b/registry/vkconventions.py
index 1d3f632..823c070 100644
--- a/registry/vkconventions.py
+++ b/registry/vkconventions.py
@@ -10,8 +10,7 @@
import re
import os
-from conventions import ConventionsBase
-
+from spec_tools.conventions import ConventionsBase
# Modified from default implementation - see category_requires_validation() below
CATEGORIES_REQUIRING_VALIDATION = set(('handle', 'enum', 'bitmask'))
@@ -51,6 +50,10 @@ class VulkanConventions(ConventionsBase):
"""Preferred spelling of NULL."""
return '`NULL`'
+ def formatExtension(self, name):
+ """Mark up an extension name as a link the spec."""
+ return '`apiext:{}`'.format(name)
+
@property
def struct_macro(self):
"""Get the appropriate format macro for a structure.