2022-02-10 10:25:43 +00:00
|
|
|
#!/usr/bin/python3 -i
|
|
|
|
#
|
2023-03-23 08:11:13 +00:00
|
|
|
# Copyright 2021-2023 The Khronos Group Inc.
|
2022-02-10 10:25:43 +00:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
# Generic alias for working group-specific API conventions interface.
|
|
|
|
|
|
|
|
# This import should be changed at the repository / working group level to
|
|
|
|
# specify the correct API's conventions.
|
|
|
|
|
2023-08-17 06:42:51 +00:00
|
|
|
|
|
|
|
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
|