Mercurial > games > semicongine
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/fuhtark_test/Vulkan-Headers-1.4.334/registry/apiconventions.py Wed Nov 26 23:34:29 2025 +0700 @@ -0,0 +1,23 @@ +#!/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 +elif VulkanAPI == 'vulkanbase': + from vkconventions import VulkanBaseConventions as APIConventions +else: + from vkconventions import VulkanConventions as APIConventions
