Mercurial > games > semicongine
comparison fuhtark_test/Vulkan-Headers-1.4.334/registry/apiconventions.py @ 1501:f40d9d814c08 default tip main
did: correct vulkan-api generator
| author | sam <sam@basx.dev> |
|---|---|
| date | Wed, 26 Nov 2025 23:34:29 +0700 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 1500:91c8c3b7cbf0 | 1501:f40d9d814c08 |
|---|---|
| 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 |
