summaryrefslogtreecommitdiffhomepage
path: root/registry/apiconventions.py
diff options
context:
space:
mode:
authorJon Leech <[email protected]>2023-06-02 06:19:12 -0700
committerJon Leech <[email protected]>2023-06-02 06:23:03 -0700
commit605dc6d3e789630d24310435121cd0c7d51b6483 (patch)
treea7c876558596c09a0492fbb30ac07181b7bb02fb /registry/apiconventions.py
parent3df77fb3e4e0961f7f01de9a9ae20dfdcfc4910a (diff)
downloadVulkan-Headers-605dc6d3e789630d24310435121cd0c7d51b6483.tar.gz
Vulkan-Headers-605dc6d3e789630d24310435121cd0c7d51b6483.zip
Update for Vulkan-Docs 1.3.252v1.3.252
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