aboutsummaryrefslogtreecommitdiffhomepage
path: root/registry/apiconventions.py
diff options
context:
space:
mode:
Diffstat (limited to 'registry/apiconventions.py')
-rw-r--r--registry/apiconventions.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/registry/apiconventions.py b/registry/apiconventions.py
index 5d9eee4..d170dd4 100644
--- a/registry/apiconventions.py
+++ b/registry/apiconventions.py
@@ -8,4 +8,14 @@
# This import should be changed at the repository / working group level to
# specify the correct API's conventions.
-from vkconventions import VulkanConventions as APIConventions
+
+import os
+
+defaultAPI = 'vulkan'
+
+VulkanAPI = os.getenv('VULKAN_API', default=defaultAPI)
+
+if VulkanAPI == 'vulkansc':
+ from vkconventions import VulkanSCConventions as APIConventions
+else:
+ from vkconventions import VulkanConventions as APIConventions