diff options
author | Jon Leech <[email protected]> | 2023-06-02 06:19:12 -0700 |
---|---|---|
committer | Jon Leech <[email protected]> | 2023-06-02 06:23:03 -0700 |
commit | 605dc6d3e789630d24310435121cd0c7d51b6483 (patch) | |
tree | a7c876558596c09a0492fbb30ac07181b7bb02fb /registry/apiconventions.py | |
parent | 3df77fb3e4e0961f7f01de9a9ae20dfdcfc4910a (diff) | |
download | Vulkan-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.py | 12 |
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 |