|
1501
|
1 #!/usr/bin/env python3 -i
|
|
|
2 #
|
|
|
3 # Copyright 2021-2025 The Khronos Group Inc.
|
|
|
4 # SPDX-License-Identifier: Apache-2.0
|
|
|
5
|
|
|
6 # Generic alias for working group-specific API conventions interface.
|
|
|
7
|
|
|
8 # This import should be changed at the repository / working group level to
|
|
|
9 # specify the correct API's conventions.
|
|
|
10
|
|
|
11
|
|
|
12 import os
|
|
|
13
|
|
|
14 defaultAPI = 'vulkan'
|
|
|
15
|
|
|
16 VulkanAPI = os.getenv('VULKAN_API', default=defaultAPI)
|
|
|
17
|
|
|
18 if VulkanAPI == 'vulkansc':
|
|
|
19 from vkconventions import VulkanSCConventions as APIConventions
|
|
|
20 elif VulkanAPI == 'vulkanbase':
|
|
|
21 from vkconventions import VulkanBaseConventions as APIConventions
|
|
|
22 else:
|
|
|
23 from vkconventions import VulkanConventions as APIConventions
|