Download third_party/ktx-src/external/dfdutils/vulkan/vk_platform.h from kimjunhan/vkgs-sim: direct link, hf CLI and curl.
- Browser
- Download file 2.83 kB
-
https://huggingface.co/kimjunhan/vkgs-sim/resolve/main/third_party/ktx-src/external/dfdutils/vulkan/vk_platform.h
- Command line
-
hf download hf://kimjunhan/vkgs-sim/third_party/ktx-src/external/dfdutils/vulkan/vk_platform.h
-
curl -L -o vk_platform.h https://huggingface.co/kimjunhan/vkgs-sim/resolve/main/third_party/ktx-src/external/dfdutils/vulkan/vk_platform.h
2.83 kB
| // | |
| // File: vk_platform.h | |
| // | |
| /* | |
| ** Copyright 2014-2023 The Khronos Group Inc. | |
| ** | |
| ** SPDX-License-Identifier: Apache-2.0 | |
| */ | |
| extern "C" | |
| { | |
| /* | |
| *************************************************************************************************** | |
| * Platform-specific directives and type declarations | |
| *************************************************************************************************** | |
| */ | |
| /* Platform-specific calling convention macros. | |
| * | |
| * Platforms should define these so that Vulkan clients call Vulkan commands | |
| * with the same calling conventions that the Vulkan implementation expects. | |
| * | |
| * VKAPI_ATTR - Placed before the return type in function declarations. | |
| * Useful for C++11 and GCC/Clang-style function attribute syntax. | |
| * VKAPI_CALL - Placed after the return type in function declarations. | |
| * Useful for MSVC-style calling convention syntax. | |
| * VKAPI_PTR - Placed between the '(' and '*' in function pointer types. | |
| * | |
| * Function declaration: VKAPI_ATTR void VKAPI_CALL vkCommand(void); | |
| * Function pointer type: typedef void (VKAPI_PTR *PFN_vkCommand)(void); | |
| */ | |
| // On Windows, Vulkan commands use the stdcall convention | |
| // On Android 32-bit ARM targets, Vulkan functions use the "hardfloat" | |
| // calling convention, i.e. float parameters are passed in registers. This | |
| // is true even if the rest of the application passes floats on the stack, | |
| // as it does by default when compiling for the armeabi-v7a NDK ABI. | |
| // On other platforms, use the default calling convention | |
| typedef signed __int8 int8_t; | |
| typedef unsigned __int8 uint8_t; | |
| typedef signed __int16 int16_t; | |
| typedef unsigned __int16 uint16_t; | |
| typedef signed __int32 int32_t; | |
| typedef unsigned __int32 uint32_t; | |
| typedef signed __int64 int64_t; | |
| typedef unsigned __int64 uint64_t; | |
| } // extern "C" | |