File: apiconventions.py

package info (click to toggle)
vulkan-loader 1.4.309.0-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 38,564 kB
  • sloc: ansic: 298,273; xml: 31,435; cpp: 31,297; python: 6,473; asm: 3,515; makefile: 71; sh: 53
file content (21 lines) | stat: -rw-r--r-- 560 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env python3 -i
#
# Copyright 2021-2025 The Khronos Group Inc.
# 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.


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