| 1 | // Copyright 2019-2024, Collabora, Ltd.cxx . . $ `<file>/src/xrt/auxiliary/vk/vk_helpers.h`/ |
| 2 | // SPDX-License-Identifier: BSL-1.0 |
| 3 | /*! |
| 4 | * @file |
| 5 | * @brief Common Vulkan code header. |
| 6 | * |
| 7 | * Note that some sections of this are generated |
| 8 | * by `scripts/generate_vk_helpers.py` - lists of functions |
| 9 | * and of optional extensions to check for. In those, |
| 10 | * please update the script and run it, instead of editing |
| 11 | * directly in this file. The generated parts are delimited |
| 12 | * by special comments. |
| 13 | * |
| 14 | * @author Jakob Bornecrantz <[email protected]> |
| 15 | * @author Lubosz Sarnecki <[email protected]> |
| 16 | * @author Moshi Turner <[email protected]> |
| 17 | * @author Korcan Hussein <[email protected]> |
| 18 | * @ingroup aux_vk |
| 19 | */ |
| 20 | |
| 21 | #pragma once |
| 22 | |
| 23 | #include "xrt/xrt_compiler.h"cxx . . $ `<file>/src/xrt/include/xrt/xrt_compiler.h`/ |
| 24 | #include "xrt/xrt_compositor.h"cxx . . $ `<file>/src/xrt/include/xrt/xrt_compositor.h`/ |
| 25 | #include "xrt/xrt_vulkan_includes.h"cxx . . $ `<file>/src/xrt/include/xrt/xrt_vulkan_includes.h`/ |
| 26 | #include "xrt/xrt_handles.h"cxx . . $ `<file>/src/xrt/include/xrt/xrt_handles.h`/ |
| 27 | #include "util/u_logging.h"cxx . . $ `<file>/src/xrt/auxiliary/util/u_logging.h`/ |
| 28 | #include "util/u_string_list.h"cxx . . $ `<file>/src/xrt/auxiliary/util/u_string_list.h`/ |
| 29 | #include "os/os_threading.h"cxx . . $ `<file>/src/xrt/auxiliary/os/os_threading.h`/ |
| 30 | |
| 31 | #ifdef __cpluspluscxx . . $ `<built-in>:485:9`! |
| 32 | extern "C" { |
| 33 | #endif |
| 34 | |
| 35 | |
| 36 | /* |
| 37 | * |
| 38 | * Structs |
| 39 | * |
| 40 | */ |
| 41 | |
| 42 | /*! |
| 43 | * A bundle of Vulkan functions and objects, used by both @ref comp and @ref |
| 44 | * comp_client. Note that they both have different instances of the object, and |
| 45 | * thus different VkInstance, etc. |
| 46 | * |
| 47 | * @ingroup aux_vk |
| 48 | */ |
| 49 | struct vk_bundlecxx . . $ vk_bundle# |
| 50 | { |
| 51 | enum u_logging_levelcxx . . $ u_logging_level# log_levelcxx . . $ vk_bundle#log_level.; |
| 52 | |
| 53 | VkInstancecxx . . $ VkInstance# instancecxx . . $ vk_bundle#instance.; |
| 54 | uint32_tcxx . . $ uint32_t# versioncxx . . $ vk_bundle#version.; |
| 55 | VkPhysicalDevicecxx . . $ VkPhysicalDevice# physical_devicecxx . . $ vk_bundle#physical_device.; |
| 56 | int physical_device_indexcxx . . $ vk_bundle#physical_device_index.; |
| 57 | VkDevicecxx . . $ VkDevice# devicecxx . . $ vk_bundle#device.; |
| 58 | uint32_tcxx . . $ uint32_t# queue_family_indexcxx . . $ vk_bundle#queue_family_index.; |
| 59 | uint32_tcxx . . $ uint32_t# queue_indexcxx . . $ vk_bundle#queue_index.; |
| 60 | VkQueuecxx . . $ VkQueue# queuecxx . . $ vk_bundle#queue.; |
| 61 | #if defined(VK_KHR_video_encode_queuecxx . . $ `<external>/13734482859137699468/vulkan_core.h:12050:9`!) |
| 62 | uint32_tcxx . . $ uint32_t# encode_queue_family_indexcxx . . $ vk_bundle#encode_queue_family_index.; |
| 63 | uint32_tcxx . . $ uint32_t# encode_queue_indexcxx . . $ vk_bundle#encode_queue_index.; |
| 64 | VkQueuecxx . . $ VkQueue# encode_queuecxx . . $ vk_bundle#encode_queue.; |
| 65 | #endif |
| 66 | |
| 67 | struct os_mutexcxx . . $ os_mutex# queue_mutexcxx . . $ vk_bundle#queue_mutex.; |
| 68 | |
| 69 | structcxx . . $ vk_bundle#$anonymous_type_0# |
| 70 | { |
| 71 | #if defined(XRT_GRAPHICS_BUFFER_HANDLE_IS_WIN32_HANDLE) |
| 72 | bool color_image_import_opaque_win32; |
| 73 | bool color_image_export_opaque_win32; |
| 74 | bool depth_image_import_opaque_win32; |
| 75 | bool depth_image_export_opaque_win32; |
| 76 | |
| 77 | bool color_image_import_d3d11; |
| 78 | bool color_image_export_d3d11; |
| 79 | bool depth_image_import_d3d11; |
| 80 | bool depth_image_export_d3d11; |
| 81 | |
| 82 | #elif defined(XRT_GRAPHICS_BUFFER_HANDLE_IS_FDcxx . . $ `src/xrt/include/xrt/xrt_handles.h:253:9`!) |
| 83 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! color_image_import_opaque_fdcxx . . $ vk_bundle#$anonymous_type_0#color_image_import_opaque_fd.; |
| 84 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! color_image_export_opaque_fdcxx . . $ vk_bundle#$anonymous_type_0#color_image_export_opaque_fd.; |
| 85 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! depth_image_import_opaque_fdcxx . . $ vk_bundle#$anonymous_type_0#depth_image_import_opaque_fd.; |
| 86 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! depth_image_export_opaque_fdcxx . . $ vk_bundle#$anonymous_type_0#depth_image_export_opaque_fd.; |
| 87 | |
| 88 | #elif defined(XRT_GRAPHICS_BUFFER_HANDLE_IS_AHARDWAREBUFFER) |
| 89 | bool color_image_import_opaque_fd; |
| 90 | bool color_image_export_opaque_fd; |
| 91 | bool depth_image_import_opaque_fd; |
| 92 | bool depth_image_export_opaque_fd; |
| 93 | |
| 94 | bool color_image_import_ahardwarebuffer; |
| 95 | bool color_image_export_ahardwarebuffer; |
| 96 | bool depth_image_import_ahardwarebuffer; |
| 97 | bool depth_image_export_ahardwarebuffer; |
| 98 | #endif |
| 99 | |
| 100 | #if defined(XRT_GRAPHICS_SYNC_HANDLE_IS_FDcxx . . $ `src/xrt/include/xrt/xrt_handles.h:355:9`!) |
| 101 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! fence_sync_fdcxx . . $ vk_bundle#$anonymous_type_0#fence_sync_fd.; |
| 102 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! fence_opaque_fdcxx . . $ vk_bundle#$anonymous_type_0#fence_opaque_fd.; |
| 103 | |
| 104 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! binary_semaphore_sync_fdcxx . . $ vk_bundle#$anonymous_type_0#binary_semaphore_sync_fd.; |
| 105 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! binary_semaphore_opaque_fdcxx . . $ vk_bundle#$anonymous_type_0#binary_semaphore_opaque_fd.; |
| 106 | |
| 107 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! timeline_semaphore_sync_fdcxx . . $ vk_bundle#$anonymous_type_0#timeline_semaphore_sync_fd.; |
| 108 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! timeline_semaphore_opaque_fdcxx . . $ vk_bundle#$anonymous_type_0#timeline_semaphore_opaque_fd.; |
| 109 | #elif defined(XRT_GRAPHICS_SYNC_HANDLE_IS_WIN32_HANDLE) |
| 110 | bool fence_win32_handle; |
| 111 | |
| 112 | bool binary_semaphore_d3d12_fence; |
| 113 | bool binary_semaphore_win32_handle; |
| 114 | |
| 115 | bool timeline_semaphore_d3d12_fence; |
| 116 | bool timeline_semaphore_win32_handle; |
| 117 | #else |
| 118 | #error "Need port for fence sync handles checkers" |
| 119 | #endif |
| 120 | } externalcxx . . $ vk_bundle#external.; |
| 121 | |
| 122 | // beginning of GENERATED instance extension code - do not modify - used by scripts |
| 123 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! has_EXT_display_surface_countercxx . . $ vk_bundle#has_EXT_display_surface_counter.; |
| 124 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! has_EXT_swapchain_colorspacecxx . . $ vk_bundle#has_EXT_swapchain_colorspace.; |
| 125 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! has_EXT_debug_utilscxx . . $ vk_bundle#has_EXT_debug_utils.; |
| 126 | // end of GENERATED instance extension code - do not modify - used by scripts |
| 127 | |
| 128 | // beginning of GENERATED device extension code - do not modify - used by scripts |
| 129 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! has_KHR_external_fence_fdcxx . . $ vk_bundle#has_KHR_external_fence_fd.; |
| 130 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! has_KHR_external_semaphore_fdcxx . . $ vk_bundle#has_KHR_external_semaphore_fd.; |
| 131 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! has_KHR_format_feature_flags2cxx . . $ vk_bundle#has_KHR_format_feature_flags2.; |
| 132 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! has_KHR_global_prioritycxx . . $ vk_bundle#has_KHR_global_priority.; |
| 133 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! has_KHR_image_format_listcxx . . $ vk_bundle#has_KHR_image_format_list.; |
| 134 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! has_KHR_maintenance1cxx . . $ vk_bundle#has_KHR_maintenance1.; |
| 135 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! has_KHR_maintenance2cxx . . $ vk_bundle#has_KHR_maintenance2.; |
| 136 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! has_KHR_maintenance3cxx . . $ vk_bundle#has_KHR_maintenance3.; |
| 137 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! has_KHR_maintenance4cxx . . $ vk_bundle#has_KHR_maintenance4.; |
| 138 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! has_KHR_synchronization2cxx . . $ vk_bundle#has_KHR_synchronization2.; |
| 139 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! has_KHR_timeline_semaphorecxx . . $ vk_bundle#has_KHR_timeline_semaphore.; |
| 140 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! has_EXT_calibrated_timestampscxx . . $ vk_bundle#has_EXT_calibrated_timestamps.; |
| 141 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! has_EXT_display_controlcxx . . $ vk_bundle#has_EXT_display_control.; |
| 142 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! has_EXT_external_memory_dma_bufcxx . . $ vk_bundle#has_EXT_external_memory_dma_buf.; |
| 143 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! has_EXT_global_prioritycxx . . $ vk_bundle#has_EXT_global_priority.; |
| 144 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! has_EXT_image_drm_format_modifiercxx . . $ vk_bundle#has_EXT_image_drm_format_modifier.; |
| 145 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! has_EXT_robustness2cxx . . $ vk_bundle#has_EXT_robustness2.; |
| 146 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! has_ANDROID_external_format_resolvecxx . . $ vk_bundle#has_ANDROID_external_format_resolve.; |
| 147 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! has_GOOGLE_display_timingcxx . . $ vk_bundle#has_GOOGLE_display_timing.; |
| 148 | // end of GENERATED device extension code - do not modify - used by scripts |
| 149 | |
| 150 | structcxx . . $ vk_bundle#$anonymous_type_1# |
| 151 | { |
| 152 | //! Are timestamps available for compute and graphics queues? |
| 153 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! timestamp_compute_and_graphicscxx . . $ vk_bundle#$anonymous_type_1#timestamp_compute_and_graphics.; |
| 154 | |
| 155 | //! Nanoseconds per gpu tick. |
| 156 | float timestamp_periodcxx . . $ vk_bundle#$anonymous_type_1#timestamp_period.; |
| 157 | |
| 158 | //! Valid bits in the queue selected. |
| 159 | uint32_tcxx . . $ uint32_t# timestamp_valid_bitscxx . . $ vk_bundle#$anonymous_type_1#timestamp_valid_bits.; |
| 160 | |
| 161 | //! Were timeline semaphore requested, available, and enabled? |
| 162 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! timeline_semaphorecxx . . $ vk_bundle#$anonymous_type_1#timeline_semaphore.; |
| 163 | |
| 164 | //! Per stage limit on sampled images (includes combined). |
| 165 | uint32_tcxx . . $ uint32_t# max_per_stage_descriptor_sampled_imagescxx . . $ vk_bundle#$anonymous_type_1#max_per_stage_descriptor_sampled_images.; |
| 166 | |
| 167 | //! Per stage limit on storage images. |
| 168 | uint32_tcxx . . $ uint32_t# max_per_stage_descriptor_storage_imagescxx . . $ vk_bundle#$anonymous_type_1#max_per_stage_descriptor_storage_images.; |
| 169 | |
| 170 | //! Was synchronization2 requested, available, and enabled? |
| 171 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! synchronization_2cxx . . $ vk_bundle#$anonymous_type_1#synchronization_2.; |
| 172 | } featurescxx . . $ vk_bundle#features.; |
| 173 | |
| 174 | //! Is the GPU a tegra device. |
| 175 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! is_tegracxx . . $ vk_bundle#is_tegra.; |
| 176 | |
| 177 | |
| 178 | VkDebugReportCallbackEXTcxx . . $ VkDebugReportCallbackEXT# debug_report_cbcxx . . $ vk_bundle#debug_report_cb.; |
| 179 | |
| 180 | VkPhysicalDeviceMemoryPropertiescxx . . $ VkPhysicalDeviceMemoryProperties# device_memory_propscxx . . $ vk_bundle#device_memory_props.; |
| 181 | |
| 182 | // Loader functions |
| 183 | PFN_vkGetInstanceProcAddrcxx . . $ PFN_vkGetInstanceProcAddr# vkGetInstanceProcAddrcxx . . $ vk_bundle#vkGetInstanceProcAddr.; |
| 184 | PFN_vkCreateInstancecxx . . $ PFN_vkCreateInstance# vkCreateInstancecxx . . $ vk_bundle#vkCreateInstance.; |
| 185 | PFN_vkEnumerateInstanceExtensionPropertiescxx . . $ PFN_vkEnumerateInstanceExtensionProperties# vkEnumerateInstanceExtensionPropertiescxx . . $ vk_bundle#vkEnumerateInstanceExtensionProperties.; |
| 186 | |
| 187 | // beginning of GENERATED instance loader code - do not modify - used by scripts |
| 188 | PFN_vkDestroyInstancecxx . . $ PFN_vkDestroyInstance# vkDestroyInstancecxx . . $ vk_bundle#vkDestroyInstance.; |
| 189 | PFN_vkGetDeviceProcAddrcxx . . $ PFN_vkGetDeviceProcAddr# vkGetDeviceProcAddrcxx . . $ vk_bundle#vkGetDeviceProcAddr.; |
| 190 | PFN_vkCreateDevicecxx . . $ PFN_vkCreateDevice# vkCreateDevicecxx . . $ vk_bundle#vkCreateDevice.; |
| 191 | PFN_vkDestroySurfaceKHRcxx . . $ PFN_vkDestroySurfaceKHR# vkDestroySurfaceKHRcxx . . $ vk_bundle#vkDestroySurfaceKHR.; |
| 192 | |
| 193 | PFN_vkCreateDebugReportCallbackEXTcxx . . $ PFN_vkCreateDebugReportCallbackEXT# vkCreateDebugReportCallbackEXTcxx . . $ vk_bundle#vkCreateDebugReportCallbackEXT.; |
| 194 | PFN_vkDestroyDebugReportCallbackEXTcxx . . $ PFN_vkDestroyDebugReportCallbackEXT# vkDestroyDebugReportCallbackEXTcxx . . $ vk_bundle#vkDestroyDebugReportCallbackEXT.; |
| 195 | |
| 196 | PFN_vkEnumeratePhysicalDevicescxx . . $ PFN_vkEnumeratePhysicalDevices# vkEnumeratePhysicalDevicescxx . . $ vk_bundle#vkEnumeratePhysicalDevices.; |
| 197 | PFN_vkGetPhysicalDevicePropertiescxx . . $ PFN_vkGetPhysicalDeviceProperties# vkGetPhysicalDevicePropertiescxx . . $ vk_bundle#vkGetPhysicalDeviceProperties.; |
| 198 | PFN_vkGetPhysicalDeviceProperties2KHRcxx . . $ PFN_vkGetPhysicalDeviceProperties2KHR# vkGetPhysicalDeviceProperties2cxx . . $ vk_bundle#vkGetPhysicalDeviceProperties2.; |
| 199 | PFN_vkGetPhysicalDeviceFeatures2KHRcxx . . $ PFN_vkGetPhysicalDeviceFeatures2KHR# vkGetPhysicalDeviceFeatures2cxx . . $ vk_bundle#vkGetPhysicalDeviceFeatures2.; |
| 200 | PFN_vkGetPhysicalDeviceMemoryPropertiescxx . . $ PFN_vkGetPhysicalDeviceMemoryProperties# vkGetPhysicalDeviceMemoryPropertiescxx . . $ vk_bundle#vkGetPhysicalDeviceMemoryProperties.; |
| 201 | PFN_vkGetPhysicalDeviceQueueFamilyPropertiescxx . . $ PFN_vkGetPhysicalDeviceQueueFamilyProperties# vkGetPhysicalDeviceQueueFamilyPropertiescxx . . $ vk_bundle#vkGetPhysicalDeviceQueueFamilyProperties.; |
| 202 | PFN_vkGetPhysicalDeviceSurfaceCapabilitiesKHRcxx . . $ PFN_vkGetPhysicalDeviceSurfaceCapabilitiesKHR# vkGetPhysicalDeviceSurfaceCapabilitiesKHRcxx . . $ vk_bundle#vkGetPhysicalDeviceSurfaceCapabilitiesKHR.; |
| 203 | PFN_vkGetPhysicalDeviceSurfaceFormatsKHRcxx . . $ PFN_vkGetPhysicalDeviceSurfaceFormatsKHR# vkGetPhysicalDeviceSurfaceFormatsKHRcxx . . $ vk_bundle#vkGetPhysicalDeviceSurfaceFormatsKHR.; |
| 204 | PFN_vkGetPhysicalDeviceSurfacePresentModesKHRcxx . . $ PFN_vkGetPhysicalDeviceSurfacePresentModesKHR# vkGetPhysicalDeviceSurfacePresentModesKHRcxx . . $ vk_bundle#vkGetPhysicalDeviceSurfacePresentModesKHR.; |
| 205 | PFN_vkGetPhysicalDeviceSurfaceSupportKHRcxx . . $ PFN_vkGetPhysicalDeviceSurfaceSupportKHR# vkGetPhysicalDeviceSurfaceSupportKHRcxx . . $ vk_bundle#vkGetPhysicalDeviceSurfaceSupportKHR.; |
| 206 | PFN_vkGetPhysicalDeviceFormatPropertiescxx . . $ PFN_vkGetPhysicalDeviceFormatProperties# vkGetPhysicalDeviceFormatPropertiescxx . . $ vk_bundle#vkGetPhysicalDeviceFormatProperties.; |
| 207 | PFN_vkGetPhysicalDeviceFormatProperties2KHRcxx . . $ PFN_vkGetPhysicalDeviceFormatProperties2KHR# vkGetPhysicalDeviceFormatProperties2cxx . . $ vk_bundle#vkGetPhysicalDeviceFormatProperties2.; |
| 208 | PFN_vkGetPhysicalDeviceImageFormatProperties2KHRcxx . . $ PFN_vkGetPhysicalDeviceImageFormatProperties2KHR# vkGetPhysicalDeviceImageFormatProperties2cxx . . $ vk_bundle#vkGetPhysicalDeviceImageFormatProperties2.; |
| 209 | PFN_vkGetPhysicalDeviceExternalBufferPropertiesKHRcxx . . $ PFN_vkGetPhysicalDeviceExternalBufferPropertiesKHR# vkGetPhysicalDeviceExternalBufferPropertiesKHRcxx . . $ vk_bundle#vkGetPhysicalDeviceExternalBufferPropertiesKHR.; |
| 210 | PFN_vkGetPhysicalDeviceExternalFencePropertiesKHRcxx . . $ PFN_vkGetPhysicalDeviceExternalFencePropertiesKHR# vkGetPhysicalDeviceExternalFencePropertiesKHRcxx . . $ vk_bundle#vkGetPhysicalDeviceExternalFencePropertiesKHR.; |
| 211 | PFN_vkGetPhysicalDeviceExternalSemaphorePropertiesKHRcxx . . $ PFN_vkGetPhysicalDeviceExternalSemaphorePropertiesKHR# vkGetPhysicalDeviceExternalSemaphorePropertiesKHRcxx . . $ vk_bundle#vkGetPhysicalDeviceExternalSemaphorePropertiesKHR.; |
| 212 | PFN_vkEnumerateDeviceExtensionPropertiescxx . . $ PFN_vkEnumerateDeviceExtensionProperties# vkEnumerateDeviceExtensionPropertiescxx . . $ vk_bundle#vkEnumerateDeviceExtensionProperties.; |
| 213 | PFN_vkEnumerateDeviceLayerPropertiescxx . . $ PFN_vkEnumerateDeviceLayerProperties# vkEnumerateDeviceLayerPropertiescxx . . $ vk_bundle#vkEnumerateDeviceLayerProperties.; |
| 214 | |
| 215 | #if defined(VK_EXT_calibrated_timestampscxx . . $ `<external>/13734482859137699468/vulkan_core.h:16980:9`!) |
| 216 | PFN_vkGetPhysicalDeviceCalibrateableTimeDomainsEXTcxx . . $ PFN_vkGetPhysicalDeviceCalibrateableTimeDomainsEXT# vkGetPhysicalDeviceCalibrateableTimeDomainsEXTcxx . . $ vk_bundle#vkGetPhysicalDeviceCalibrateableTimeDomainsEXT.; |
| 217 | |
| 218 | #endif // defined(VK_EXT_calibrated_timestamps) |
| 219 | |
| 220 | #if defined(VK_USE_PLATFORM_DISPLAY_KHRcxx . . $ `build/src/xrt/include/xrt/xrt_config_vulkan.h:17:9`!) |
| 221 | PFN_vkCreateDisplayPlaneSurfaceKHRcxx . . $ PFN_vkCreateDisplayPlaneSurfaceKHR# vkCreateDisplayPlaneSurfaceKHRcxx . . $ vk_bundle#vkCreateDisplayPlaneSurfaceKHR.; |
| 222 | PFN_vkGetDisplayPlaneCapabilitiesKHRcxx . . $ PFN_vkGetDisplayPlaneCapabilitiesKHR# vkGetDisplayPlaneCapabilitiesKHRcxx . . $ vk_bundle#vkGetDisplayPlaneCapabilitiesKHR.; |
| 223 | PFN_vkGetPhysicalDeviceDisplayPropertiesKHRcxx . . $ PFN_vkGetPhysicalDeviceDisplayPropertiesKHR# vkGetPhysicalDeviceDisplayPropertiesKHRcxx . . $ vk_bundle#vkGetPhysicalDeviceDisplayPropertiesKHR.; |
| 224 | PFN_vkGetPhysicalDeviceDisplayPlanePropertiesKHRcxx . . $ PFN_vkGetPhysicalDeviceDisplayPlanePropertiesKHR# vkGetPhysicalDeviceDisplayPlanePropertiesKHRcxx . . $ vk_bundle#vkGetPhysicalDeviceDisplayPlanePropertiesKHR.; |
| 225 | PFN_vkGetDisplayModePropertiesKHRcxx . . $ PFN_vkGetDisplayModePropertiesKHR# vkGetDisplayModePropertiesKHRcxx . . $ vk_bundle#vkGetDisplayModePropertiesKHR.; |
| 226 | PFN_vkReleaseDisplayEXTcxx . . $ PFN_vkReleaseDisplayEXT# vkReleaseDisplayEXTcxx . . $ vk_bundle#vkReleaseDisplayEXT.; |
| 227 | |
| 228 | #endif // defined(VK_USE_PLATFORM_DISPLAY_KHR) |
| 229 | |
| 230 | #if defined(VK_USE_PLATFORM_XCB_KHRcxx . . $ `build/src/xrt/include/xrt/xrt_config_vulkan.h:14:9`!) |
| 231 | PFN_vkCreateXcbSurfaceKHRcxx . . $ PFN_vkCreateXcbSurfaceKHR# vkCreateXcbSurfaceKHRcxx . . $ vk_bundle#vkCreateXcbSurfaceKHR.; |
| 232 | |
| 233 | #endif // defined(VK_USE_PLATFORM_XCB_KHR) |
| 234 | |
| 235 | #if defined(VK_USE_PLATFORM_WAYLAND_KHRcxx . . $ `build/src/xrt/include/xrt/xrt_config_vulkan.h:13:9`!) |
| 236 | PFN_vkCreateWaylandSurfaceKHRcxx . . $ PFN_vkCreateWaylandSurfaceKHR# vkCreateWaylandSurfaceKHRcxx . . $ vk_bundle#vkCreateWaylandSurfaceKHR.; |
| 237 | |
| 238 | #endif // defined(VK_USE_PLATFORM_WAYLAND_KHR) |
| 239 | |
| 240 | #if defined(VK_USE_PLATFORM_WAYLAND_KHRcxx . . $ `build/src/xrt/include/xrt/xrt_config_vulkan.h:13:9`!) && defined(VK_EXT_acquire_drm_displaycxx . . $ `<external>/13734482859137699468/vulkan_core.h:18793:9`!) |
| 241 | PFN_vkAcquireDrmDisplayEXTcxx . . $ PFN_vkAcquireDrmDisplayEXT# vkAcquireDrmDisplayEXTcxx . . $ vk_bundle#vkAcquireDrmDisplayEXT.; |
| 242 | PFN_vkGetDrmDisplayEXTcxx . . $ PFN_vkGetDrmDisplayEXT# vkGetDrmDisplayEXTcxx . . $ vk_bundle#vkGetDrmDisplayEXT.; |
| 243 | |
| 244 | #endif // defined(VK_USE_PLATFORM_WAYLAND_KHR) && defined(VK_EXT_acquire_drm_display) |
| 245 | |
| 246 | #if defined(VK_USE_PLATFORM_XLIB_XRANDR_EXTcxx . . $ `build/src/xrt/include/xrt/xrt_config_vulkan.h:15:9`!) |
| 247 | PFN_vkGetRandROutputDisplayEXTcxx . . $ PFN_vkGetRandROutputDisplayEXT# vkGetRandROutputDisplayEXTcxx . . $ vk_bundle#vkGetRandROutputDisplayEXT.; |
| 248 | PFN_vkAcquireXlibDisplayEXTcxx . . $ PFN_vkAcquireXlibDisplayEXT# vkAcquireXlibDisplayEXTcxx . . $ vk_bundle#vkAcquireXlibDisplayEXT.; |
| 249 | |
| 250 | #endif // defined(VK_USE_PLATFORM_XLIB_XRANDR_EXT) |
| 251 | |
| 252 | #if defined(VK_USE_PLATFORM_ANDROID_KHR) |
| 253 | PFN_vkCreateAndroidSurfaceKHR vkCreateAndroidSurfaceKHR; |
| 254 | |
| 255 | #endif // defined(VK_USE_PLATFORM_ANDROID_KHR) |
| 256 | |
| 257 | #if defined(VK_USE_PLATFORM_WIN32_KHR) |
| 258 | PFN_vkCreateWin32SurfaceKHR vkCreateWin32SurfaceKHR; |
| 259 | |
| 260 | #endif // defined(VK_USE_PLATFORM_WIN32_KHR) |
| 261 | |
| 262 | #if defined(VK_EXT_display_surface_countercxx . . $ `<external>/13734482859137699468/vulkan_core.h:14939:9`!) |
| 263 | PFN_vkGetPhysicalDeviceSurfaceCapabilities2EXTcxx . . $ PFN_vkGetPhysicalDeviceSurfaceCapabilities2EXT# vkGetPhysicalDeviceSurfaceCapabilities2EXTcxx . . $ vk_bundle#vkGetPhysicalDeviceSurfaceCapabilities2EXT.; |
| 264 | |
| 265 | #endif // defined(VK_EXT_display_surface_counter) |
| 266 | |
| 267 | #if defined(VK_EXT_debug_utilscxx . . $ `<external>/13734482859137699468/vulkan_core.h:15363:9`!) |
| 268 | PFN_vkCreateDebugUtilsMessengerEXTcxx . . $ PFN_vkCreateDebugUtilsMessengerEXT# vkCreateDebugUtilsMessengerEXTcxx . . $ vk_bundle#vkCreateDebugUtilsMessengerEXT.; |
| 269 | PFN_vkSubmitDebugUtilsMessageEXTcxx . . $ PFN_vkSubmitDebugUtilsMessageEXT# vkSubmitDebugUtilsMessageEXTcxx . . $ vk_bundle#vkSubmitDebugUtilsMessageEXT.; |
| 270 | PFN_vkDestroyDebugUtilsMessengerEXTcxx . . $ PFN_vkDestroyDebugUtilsMessengerEXT# vkDestroyDebugUtilsMessengerEXTcxx . . $ vk_bundle#vkDestroyDebugUtilsMessengerEXT.; |
| 271 | #endif // defined(VK_EXT_debug_utils) |
| 272 | |
| 273 | // end of GENERATED instance loader code - do not modify - used by scripts |
| 274 | |
| 275 | // beginning of GENERATED device loader code - do not modify - used by scripts |
| 276 | PFN_vkDestroyDevicecxx . . $ PFN_vkDestroyDevice# vkDestroyDevicecxx . . $ vk_bundle#vkDestroyDevice.; |
| 277 | PFN_vkDeviceWaitIdlecxx . . $ PFN_vkDeviceWaitIdle# vkDeviceWaitIdlecxx . . $ vk_bundle#vkDeviceWaitIdle.; |
| 278 | PFN_vkAllocateMemorycxx . . $ PFN_vkAllocateMemory# vkAllocateMemorycxx . . $ vk_bundle#vkAllocateMemory.; |
| 279 | PFN_vkFreeMemorycxx . . $ PFN_vkFreeMemory# vkFreeMemorycxx . . $ vk_bundle#vkFreeMemory.; |
| 280 | PFN_vkMapMemorycxx . . $ PFN_vkMapMemory# vkMapMemorycxx . . $ vk_bundle#vkMapMemory.; |
| 281 | PFN_vkUnmapMemorycxx . . $ PFN_vkUnmapMemory# vkUnmapMemorycxx . . $ vk_bundle#vkUnmapMemory.; |
| 282 | |
| 283 | PFN_vkCreateBuffercxx . . $ PFN_vkCreateBuffer# vkCreateBuffercxx . . $ vk_bundle#vkCreateBuffer.; |
| 284 | PFN_vkDestroyBuffercxx . . $ PFN_vkDestroyBuffer# vkDestroyBuffercxx . . $ vk_bundle#vkDestroyBuffer.; |
| 285 | PFN_vkBindBufferMemorycxx . . $ PFN_vkBindBufferMemory# vkBindBufferMemorycxx . . $ vk_bundle#vkBindBufferMemory.; |
| 286 | |
| 287 | PFN_vkCreateImagecxx . . $ PFN_vkCreateImage# vkCreateImagecxx . . $ vk_bundle#vkCreateImage.; |
| 288 | PFN_vkDestroyImagecxx . . $ PFN_vkDestroyImage# vkDestroyImagecxx . . $ vk_bundle#vkDestroyImage.; |
| 289 | PFN_vkBindImageMemorycxx . . $ PFN_vkBindImageMemory# vkBindImageMemorycxx . . $ vk_bundle#vkBindImageMemory.; |
| 290 | |
| 291 | PFN_vkGetBufferMemoryRequirementscxx . . $ PFN_vkGetBufferMemoryRequirements# vkGetBufferMemoryRequirementscxx . . $ vk_bundle#vkGetBufferMemoryRequirements.; |
| 292 | PFN_vkFlushMappedMemoryRangescxx . . $ PFN_vkFlushMappedMemoryRanges# vkFlushMappedMemoryRangescxx . . $ vk_bundle#vkFlushMappedMemoryRanges.; |
| 293 | PFN_vkGetImageMemoryRequirementscxx . . $ PFN_vkGetImageMemoryRequirements# vkGetImageMemoryRequirementscxx . . $ vk_bundle#vkGetImageMemoryRequirements.; |
| 294 | PFN_vkGetImageMemoryRequirements2KHRcxx . . $ PFN_vkGetImageMemoryRequirements2KHR# vkGetImageMemoryRequirements2cxx . . $ vk_bundle#vkGetImageMemoryRequirements2.; |
| 295 | PFN_vkGetImageSubresourceLayoutcxx . . $ PFN_vkGetImageSubresourceLayout# vkGetImageSubresourceLayoutcxx . . $ vk_bundle#vkGetImageSubresourceLayout.; |
| 296 | |
| 297 | PFN_vkCreateImageViewcxx . . $ PFN_vkCreateImageView# vkCreateImageViewcxx . . $ vk_bundle#vkCreateImageView.; |
| 298 | PFN_vkDestroyImageViewcxx . . $ PFN_vkDestroyImageView# vkDestroyImageViewcxx . . $ vk_bundle#vkDestroyImageView.; |
| 299 | |
| 300 | PFN_vkCreateSamplercxx . . $ PFN_vkCreateSampler# vkCreateSamplercxx . . $ vk_bundle#vkCreateSampler.; |
| 301 | PFN_vkDestroySamplercxx . . $ PFN_vkDestroySampler# vkDestroySamplercxx . . $ vk_bundle#vkDestroySampler.; |
| 302 | |
| 303 | PFN_vkCreateShaderModulecxx . . $ PFN_vkCreateShaderModule# vkCreateShaderModulecxx . . $ vk_bundle#vkCreateShaderModule.; |
| 304 | PFN_vkDestroyShaderModulecxx . . $ PFN_vkDestroyShaderModule# vkDestroyShaderModulecxx . . $ vk_bundle#vkDestroyShaderModule.; |
| 305 | |
| 306 | PFN_vkCreateQueryPoolcxx . . $ PFN_vkCreateQueryPool# vkCreateQueryPoolcxx . . $ vk_bundle#vkCreateQueryPool.; |
| 307 | PFN_vkDestroyQueryPoolcxx . . $ PFN_vkDestroyQueryPool# vkDestroyQueryPoolcxx . . $ vk_bundle#vkDestroyQueryPool.; |
| 308 | PFN_vkGetQueryPoolResultscxx . . $ PFN_vkGetQueryPoolResults# vkGetQueryPoolResultscxx . . $ vk_bundle#vkGetQueryPoolResults.; |
| 309 | |
| 310 | PFN_vkCreateCommandPoolcxx . . $ PFN_vkCreateCommandPool# vkCreateCommandPoolcxx . . $ vk_bundle#vkCreateCommandPool.; |
| 311 | PFN_vkDestroyCommandPoolcxx . . $ PFN_vkDestroyCommandPool# vkDestroyCommandPoolcxx . . $ vk_bundle#vkDestroyCommandPool.; |
| 312 | PFN_vkResetCommandPoolcxx . . $ PFN_vkResetCommandPool# vkResetCommandPoolcxx . . $ vk_bundle#vkResetCommandPool.; |
| 313 | |
| 314 | PFN_vkAllocateCommandBufferscxx . . $ PFN_vkAllocateCommandBuffers# vkAllocateCommandBufferscxx . . $ vk_bundle#vkAllocateCommandBuffers.; |
| 315 | PFN_vkBeginCommandBuffercxx . . $ PFN_vkBeginCommandBuffer# vkBeginCommandBuffercxx . . $ vk_bundle#vkBeginCommandBuffer.; |
| 316 | PFN_vkCmdBeginQuerycxx . . $ PFN_vkCmdBeginQuery# vkCmdBeginQuerycxx . . $ vk_bundle#vkCmdBeginQuery.; |
| 317 | PFN_vkCmdCopyQueryPoolResultscxx . . $ PFN_vkCmdCopyQueryPoolResults# vkCmdCopyQueryPoolResultscxx . . $ vk_bundle#vkCmdCopyQueryPoolResults.; |
| 318 | PFN_vkCmdEndQuerycxx . . $ PFN_vkCmdEndQuery# vkCmdEndQuerycxx . . $ vk_bundle#vkCmdEndQuery.; |
| 319 | PFN_vkCmdResetQueryPoolcxx . . $ PFN_vkCmdResetQueryPool# vkCmdResetQueryPoolcxx . . $ vk_bundle#vkCmdResetQueryPool.; |
| 320 | PFN_vkCmdWriteTimestampcxx . . $ PFN_vkCmdWriteTimestamp# vkCmdWriteTimestampcxx . . $ vk_bundle#vkCmdWriteTimestamp.; |
| 321 | PFN_vkCmdPipelineBarriercxx . . $ PFN_vkCmdPipelineBarrier# vkCmdPipelineBarriercxx . . $ vk_bundle#vkCmdPipelineBarrier.; |
| 322 | PFN_vkCmdBeginRenderPasscxx . . $ PFN_vkCmdBeginRenderPass# vkCmdBeginRenderPasscxx . . $ vk_bundle#vkCmdBeginRenderPass.; |
| 323 | PFN_vkCmdSetScissorcxx . . $ PFN_vkCmdSetScissor# vkCmdSetScissorcxx . . $ vk_bundle#vkCmdSetScissor.; |
| 324 | PFN_vkCmdSetViewportcxx . . $ PFN_vkCmdSetViewport# vkCmdSetViewportcxx . . $ vk_bundle#vkCmdSetViewport.; |
| 325 | PFN_vkCmdClearColorImagecxx . . $ PFN_vkCmdClearColorImage# vkCmdClearColorImagecxx . . $ vk_bundle#vkCmdClearColorImage.; |
| 326 | PFN_vkCmdEndRenderPasscxx . . $ PFN_vkCmdEndRenderPass# vkCmdEndRenderPasscxx . . $ vk_bundle#vkCmdEndRenderPass.; |
| 327 | PFN_vkCmdBindDescriptorSetscxx . . $ PFN_vkCmdBindDescriptorSets# vkCmdBindDescriptorSetscxx . . $ vk_bundle#vkCmdBindDescriptorSets.; |
| 328 | PFN_vkCmdBindPipelinecxx . . $ PFN_vkCmdBindPipeline# vkCmdBindPipelinecxx . . $ vk_bundle#vkCmdBindPipeline.; |
| 329 | PFN_vkCmdBindVertexBufferscxx . . $ PFN_vkCmdBindVertexBuffers# vkCmdBindVertexBufferscxx . . $ vk_bundle#vkCmdBindVertexBuffers.; |
| 330 | PFN_vkCmdBindIndexBuffercxx . . $ PFN_vkCmdBindIndexBuffer# vkCmdBindIndexBuffercxx . . $ vk_bundle#vkCmdBindIndexBuffer.; |
| 331 | PFN_vkCmdDrawcxx . . $ PFN_vkCmdDraw# vkCmdDrawcxx . . $ vk_bundle#vkCmdDraw.; |
| 332 | PFN_vkCmdDrawIndexedcxx . . $ PFN_vkCmdDrawIndexed# vkCmdDrawIndexedcxx . . $ vk_bundle#vkCmdDrawIndexed.; |
| 333 | PFN_vkCmdDispatchcxx . . $ PFN_vkCmdDispatch# vkCmdDispatchcxx . . $ vk_bundle#vkCmdDispatch.; |
| 334 | PFN_vkCmdCopyBuffercxx . . $ PFN_vkCmdCopyBuffer# vkCmdCopyBuffercxx . . $ vk_bundle#vkCmdCopyBuffer.; |
| 335 | PFN_vkCmdCopyBufferToImagecxx . . $ PFN_vkCmdCopyBufferToImage# vkCmdCopyBufferToImagecxx . . $ vk_bundle#vkCmdCopyBufferToImage.; |
| 336 | PFN_vkCmdCopyImagecxx . . $ PFN_vkCmdCopyImage# vkCmdCopyImagecxx . . $ vk_bundle#vkCmdCopyImage.; |
| 337 | PFN_vkCmdCopyImageToBuffercxx . . $ PFN_vkCmdCopyImageToBuffer# vkCmdCopyImageToBuffercxx . . $ vk_bundle#vkCmdCopyImageToBuffer.; |
| 338 | PFN_vkCmdBlitImagecxx . . $ PFN_vkCmdBlitImage# vkCmdBlitImagecxx . . $ vk_bundle#vkCmdBlitImage.; |
| 339 | PFN_vkCmdPushConstantscxx . . $ PFN_vkCmdPushConstants# vkCmdPushConstantscxx . . $ vk_bundle#vkCmdPushConstants.; |
| 340 | PFN_vkEndCommandBuffercxx . . $ PFN_vkEndCommandBuffer# vkEndCommandBuffercxx . . $ vk_bundle#vkEndCommandBuffer.; |
| 341 | PFN_vkFreeCommandBufferscxx . . $ PFN_vkFreeCommandBuffers# vkFreeCommandBufferscxx . . $ vk_bundle#vkFreeCommandBuffers.; |
| 342 | |
| 343 | PFN_vkCreateRenderPasscxx . . $ PFN_vkCreateRenderPass# vkCreateRenderPasscxx . . $ vk_bundle#vkCreateRenderPass.; |
| 344 | PFN_vkDestroyRenderPasscxx . . $ PFN_vkDestroyRenderPass# vkDestroyRenderPasscxx . . $ vk_bundle#vkDestroyRenderPass.; |
| 345 | |
| 346 | PFN_vkCreateFramebuffercxx . . $ PFN_vkCreateFramebuffer# vkCreateFramebuffercxx . . $ vk_bundle#vkCreateFramebuffer.; |
| 347 | PFN_vkDestroyFramebuffercxx . . $ PFN_vkDestroyFramebuffer# vkDestroyFramebuffercxx . . $ vk_bundle#vkDestroyFramebuffer.; |
| 348 | |
| 349 | PFN_vkCreatePipelineCachecxx . . $ PFN_vkCreatePipelineCache# vkCreatePipelineCachecxx . . $ vk_bundle#vkCreatePipelineCache.; |
| 350 | PFN_vkDestroyPipelineCachecxx . . $ PFN_vkDestroyPipelineCache# vkDestroyPipelineCachecxx . . $ vk_bundle#vkDestroyPipelineCache.; |
| 351 | |
| 352 | PFN_vkResetDescriptorPoolcxx . . $ PFN_vkResetDescriptorPool# vkResetDescriptorPoolcxx . . $ vk_bundle#vkResetDescriptorPool.; |
| 353 | PFN_vkCreateDescriptorPoolcxx . . $ PFN_vkCreateDescriptorPool# vkCreateDescriptorPoolcxx . . $ vk_bundle#vkCreateDescriptorPool.; |
| 354 | PFN_vkDestroyDescriptorPoolcxx . . $ PFN_vkDestroyDescriptorPool# vkDestroyDescriptorPoolcxx . . $ vk_bundle#vkDestroyDescriptorPool.; |
| 355 | |
| 356 | PFN_vkAllocateDescriptorSetscxx . . $ PFN_vkAllocateDescriptorSets# vkAllocateDescriptorSetscxx . . $ vk_bundle#vkAllocateDescriptorSets.; |
| 357 | PFN_vkFreeDescriptorSetscxx . . $ PFN_vkFreeDescriptorSets# vkFreeDescriptorSetscxx . . $ vk_bundle#vkFreeDescriptorSets.; |
| 358 | |
| 359 | PFN_vkCreateComputePipelinescxx . . $ PFN_vkCreateComputePipelines# vkCreateComputePipelinescxx . . $ vk_bundle#vkCreateComputePipelines.; |
| 360 | PFN_vkCreateGraphicsPipelinescxx . . $ PFN_vkCreateGraphicsPipelines# vkCreateGraphicsPipelinescxx . . $ vk_bundle#vkCreateGraphicsPipelines.; |
| 361 | PFN_vkDestroyPipelinecxx . . $ PFN_vkDestroyPipeline# vkDestroyPipelinecxx . . $ vk_bundle#vkDestroyPipeline.; |
| 362 | |
| 363 | PFN_vkCreatePipelineLayoutcxx . . $ PFN_vkCreatePipelineLayout# vkCreatePipelineLayoutcxx . . $ vk_bundle#vkCreatePipelineLayout.; |
| 364 | PFN_vkDestroyPipelineLayoutcxx . . $ PFN_vkDestroyPipelineLayout# vkDestroyPipelineLayoutcxx . . $ vk_bundle#vkDestroyPipelineLayout.; |
| 365 | |
| 366 | PFN_vkCreateDescriptorSetLayoutcxx . . $ PFN_vkCreateDescriptorSetLayout# vkCreateDescriptorSetLayoutcxx . . $ vk_bundle#vkCreateDescriptorSetLayout.; |
| 367 | PFN_vkUpdateDescriptorSetscxx . . $ PFN_vkUpdateDescriptorSets# vkUpdateDescriptorSetscxx . . $ vk_bundle#vkUpdateDescriptorSets.; |
| 368 | PFN_vkDestroyDescriptorSetLayoutcxx . . $ PFN_vkDestroyDescriptorSetLayout# vkDestroyDescriptorSetLayoutcxx . . $ vk_bundle#vkDestroyDescriptorSetLayout.; |
| 369 | |
| 370 | PFN_vkGetDeviceQueuecxx . . $ PFN_vkGetDeviceQueue# vkGetDeviceQueuecxx . . $ vk_bundle#vkGetDeviceQueue.; |
| 371 | PFN_vkQueueSubmitcxx . . $ PFN_vkQueueSubmit# vkQueueSubmitcxx . . $ vk_bundle#vkQueueSubmit.; |
| 372 | PFN_vkQueueWaitIdlecxx . . $ PFN_vkQueueWaitIdle# vkQueueWaitIdlecxx . . $ vk_bundle#vkQueueWaitIdle.; |
| 373 | |
| 374 | PFN_vkCreateSemaphorecxx . . $ PFN_vkCreateSemaphore# vkCreateSemaphorecxx . . $ vk_bundle#vkCreateSemaphore.; |
| 375 | #if defined(VK_KHR_timeline_semaphorecxx . . $ `<external>/13734482859137699468/vulkan_core.h:11531:9`!) |
| 376 | PFN_vkSignalSemaphoreKHRcxx . . $ PFN_vkSignalSemaphoreKHR# vkSignalSemaphorecxx . . $ vk_bundle#vkSignalSemaphore.; |
| 377 | PFN_vkWaitSemaphoresKHRcxx . . $ PFN_vkWaitSemaphoresKHR# vkWaitSemaphorescxx . . $ vk_bundle#vkWaitSemaphores.; |
| 378 | PFN_vkGetSemaphoreCounterValueKHRcxx . . $ PFN_vkGetSemaphoreCounterValueKHR# vkGetSemaphoreCounterValuecxx . . $ vk_bundle#vkGetSemaphoreCounterValue.; |
| 379 | #endif // defined(VK_KHR_timeline_semaphore) |
| 380 | |
| 381 | PFN_vkDestroySemaphorecxx . . $ PFN_vkDestroySemaphore# vkDestroySemaphorecxx . . $ vk_bundle#vkDestroySemaphore.; |
| 382 | |
| 383 | PFN_vkCreateFencecxx . . $ PFN_vkCreateFence# vkCreateFencecxx . . $ vk_bundle#vkCreateFence.; |
| 384 | PFN_vkWaitForFencescxx . . $ PFN_vkWaitForFences# vkWaitForFencescxx . . $ vk_bundle#vkWaitForFences.; |
| 385 | PFN_vkGetFenceStatuscxx . . $ PFN_vkGetFenceStatus# vkGetFenceStatuscxx . . $ vk_bundle#vkGetFenceStatus.; |
| 386 | PFN_vkDestroyFencecxx . . $ PFN_vkDestroyFence# vkDestroyFencecxx . . $ vk_bundle#vkDestroyFence.; |
| 387 | PFN_vkResetFencescxx . . $ PFN_vkResetFences# vkResetFencescxx . . $ vk_bundle#vkResetFences.; |
| 388 | |
| 389 | PFN_vkCreateSwapchainKHRcxx . . $ PFN_vkCreateSwapchainKHR# vkCreateSwapchainKHRcxx . . $ vk_bundle#vkCreateSwapchainKHR.; |
| 390 | PFN_vkDestroySwapchainKHRcxx . . $ PFN_vkDestroySwapchainKHR# vkDestroySwapchainKHRcxx . . $ vk_bundle#vkDestroySwapchainKHR.; |
| 391 | PFN_vkGetSwapchainImagesKHRcxx . . $ PFN_vkGetSwapchainImagesKHR# vkGetSwapchainImagesKHRcxx . . $ vk_bundle#vkGetSwapchainImagesKHR.; |
| 392 | PFN_vkAcquireNextImageKHRcxx . . $ PFN_vkAcquireNextImageKHR# vkAcquireNextImageKHRcxx . . $ vk_bundle#vkAcquireNextImageKHR.; |
| 393 | PFN_vkQueuePresentKHRcxx . . $ PFN_vkQueuePresentKHR# vkQueuePresentKHRcxx . . $ vk_bundle#vkQueuePresentKHR.; |
| 394 | |
| 395 | #if defined(VK_USE_PLATFORM_WIN32_KHR) |
| 396 | PFN_vkGetMemoryWin32HandleKHR vkGetMemoryWin32HandleKHR; |
| 397 | PFN_vkGetFenceWin32HandleKHR vkGetFenceWin32HandleKHR; |
| 398 | PFN_vkGetSemaphoreWin32HandleKHR vkGetSemaphoreWin32HandleKHR; |
| 399 | PFN_vkImportFenceWin32HandleKHR vkImportFenceWin32HandleKHR; |
| 400 | PFN_vkImportSemaphoreWin32HandleKHR vkImportSemaphoreWin32HandleKHR; |
| 401 | |
| 402 | #endif // defined(VK_USE_PLATFORM_WIN32_KHR) |
| 403 | |
| 404 | #if !defined(VK_USE_PLATFORM_WIN32_KHR) |
| 405 | PFN_vkGetMemoryFdKHRcxx . . $ PFN_vkGetMemoryFdKHR# vkGetMemoryFdKHRcxx . . $ vk_bundle#vkGetMemoryFdKHR.; |
| 406 | PFN_vkGetFenceFdKHRcxx . . $ PFN_vkGetFenceFdKHR# vkGetFenceFdKHRcxx . . $ vk_bundle#vkGetFenceFdKHR.; |
| 407 | PFN_vkGetSemaphoreFdKHRcxx . . $ PFN_vkGetSemaphoreFdKHR# vkGetSemaphoreFdKHRcxx . . $ vk_bundle#vkGetSemaphoreFdKHR.; |
| 408 | PFN_vkImportFenceFdKHRcxx . . $ PFN_vkImportFenceFdKHR# vkImportFenceFdKHRcxx . . $ vk_bundle#vkImportFenceFdKHR.; |
| 409 | PFN_vkImportSemaphoreFdKHRcxx . . $ PFN_vkImportSemaphoreFdKHR# vkImportSemaphoreFdKHRcxx . . $ vk_bundle#vkImportSemaphoreFdKHR.; |
| 410 | |
| 411 | #endif // !defined(VK_USE_PLATFORM_WIN32_KHR) |
| 412 | |
| 413 | #if defined(VK_USE_PLATFORM_ANDROID_KHR) |
| 414 | PFN_vkGetMemoryAndroidHardwareBufferANDROID vkGetMemoryAndroidHardwareBufferANDROID; |
| 415 | PFN_vkGetAndroidHardwareBufferPropertiesANDROID vkGetAndroidHardwareBufferPropertiesANDROID; |
| 416 | |
| 417 | #endif // defined(VK_USE_PLATFORM_ANDROID_KHR) |
| 418 | |
| 419 | #if defined(VK_EXT_calibrated_timestampscxx . . $ `<external>/13734482859137699468/vulkan_core.h:16980:9`!) |
| 420 | PFN_vkGetCalibratedTimestampsEXTcxx . . $ PFN_vkGetCalibratedTimestampsEXT# vkGetCalibratedTimestampsEXTcxx . . $ vk_bundle#vkGetCalibratedTimestampsEXT.; |
| 421 | |
| 422 | #endif // defined(VK_EXT_calibrated_timestamps) |
| 423 | |
| 424 | PFN_vkGetPastPresentationTimingGOOGLEcxx . . $ PFN_vkGetPastPresentationTimingGOOGLE# vkGetPastPresentationTimingGOOGLEcxx . . $ vk_bundle#vkGetPastPresentationTimingGOOGLE.; |
| 425 | |
| 426 | #if defined(VK_EXT_display_controlcxx . . $ `<external>/13734482859137699468/vulkan_core.h:14979:9`!) |
| 427 | PFN_vkGetSwapchainCounterEXTcxx . . $ PFN_vkGetSwapchainCounterEXT# vkGetSwapchainCounterEXTcxx . . $ vk_bundle#vkGetSwapchainCounterEXT.; |
| 428 | PFN_vkRegisterDeviceEventEXTcxx . . $ PFN_vkRegisterDeviceEventEXT# vkRegisterDeviceEventEXTcxx . . $ vk_bundle#vkRegisterDeviceEventEXT.; |
| 429 | PFN_vkRegisterDisplayEventEXTcxx . . $ PFN_vkRegisterDisplayEventEXT# vkRegisterDisplayEventEXTcxx . . $ vk_bundle#vkRegisterDisplayEventEXT.; |
| 430 | |
| 431 | #endif // defined(VK_EXT_display_control) |
| 432 | |
| 433 | #if defined(VK_EXT_image_drm_format_modifiercxx . . $ `<external>/13734482859137699468/vulkan_core.h:16150:9`!) |
| 434 | PFN_vkGetImageDrmFormatModifierPropertiesEXTcxx . . $ PFN_vkGetImageDrmFormatModifierPropertiesEXT# vkGetImageDrmFormatModifierPropertiesEXTcxx . . $ vk_bundle#vkGetImageDrmFormatModifierPropertiesEXT.; |
| 435 | |
| 436 | #endif // defined(VK_EXT_image_drm_format_modifier) |
| 437 | |
| 438 | #if defined(VK_EXT_debug_utilscxx . . $ `<external>/13734482859137699468/vulkan_core.h:15363:9`!) |
| 439 | PFN_vkCmdBeginDebugUtilsLabelEXTcxx . . $ PFN_vkCmdBeginDebugUtilsLabelEXT# vkCmdBeginDebugUtilsLabelEXTcxx . . $ vk_bundle#vkCmdBeginDebugUtilsLabelEXT.; |
| 440 | PFN_vkCmdEndDebugUtilsLabelEXTcxx . . $ PFN_vkCmdEndDebugUtilsLabelEXT# vkCmdEndDebugUtilsLabelEXTcxx . . $ vk_bundle#vkCmdEndDebugUtilsLabelEXT.; |
| 441 | PFN_vkCmdInsertDebugUtilsLabelEXTcxx . . $ PFN_vkCmdInsertDebugUtilsLabelEXT# vkCmdInsertDebugUtilsLabelEXTcxx . . $ vk_bundle#vkCmdInsertDebugUtilsLabelEXT.; |
| 442 | PFN_vkQueueBeginDebugUtilsLabelEXTcxx . . $ PFN_vkQueueBeginDebugUtilsLabelEXT# vkQueueBeginDebugUtilsLabelEXTcxx . . $ vk_bundle#vkQueueBeginDebugUtilsLabelEXT.; |
| 443 | PFN_vkQueueEndDebugUtilsLabelEXTcxx . . $ PFN_vkQueueEndDebugUtilsLabelEXT# vkQueueEndDebugUtilsLabelEXTcxx . . $ vk_bundle#vkQueueEndDebugUtilsLabelEXT.; |
| 444 | PFN_vkQueueInsertDebugUtilsLabelEXTcxx . . $ PFN_vkQueueInsertDebugUtilsLabelEXT# vkQueueInsertDebugUtilsLabelEXTcxx . . $ vk_bundle#vkQueueInsertDebugUtilsLabelEXT.; |
| 445 | PFN_vkSetDebugUtilsObjectNameEXTcxx . . $ PFN_vkSetDebugUtilsObjectNameEXT# vkSetDebugUtilsObjectNameEXTcxx . . $ vk_bundle#vkSetDebugUtilsObjectNameEXT.; |
| 446 | PFN_vkSetDebugUtilsObjectTagEXTcxx . . $ PFN_vkSetDebugUtilsObjectTagEXT# vkSetDebugUtilsObjectTagEXTcxx . . $ vk_bundle#vkSetDebugUtilsObjectTagEXT.; |
| 447 | #endif // defined(VK_EXT_debug_utils) |
| 448 | |
| 449 | // end of GENERATED device loader code - do not modify - used by scripts |
| 450 | }; |
| 451 | |
| 452 | struct vk_buffercxx . . $ vk_buffer# |
| 453 | { |
| 454 | VkBuffercxx . . $ VkBuffer# handlecxx . . $ vk_buffer#handle.; |
| 455 | VkDeviceMemorycxx . . $ VkDeviceMemory# memorycxx . . $ vk_buffer#memory.; |
| 456 | uint32_tcxx . . $ uint32_t# sizecxx . . $ vk_buffer#size.; |
| 457 | void *datacxx . . $ vk_buffer#data.; |
| 458 | }; |
| 459 | |
| 460 | |
| 461 | /* |
| 462 | * |
| 463 | * Helper defines. |
| 464 | * |
| 465 | */ |
| 466 | |
| 467 | /*! |
| 468 | * This define will error if `RET` is not `VK_SUCCESS`, printing out that the |
| 469 | * @p FUNC_STR string has failed, then returns @p RET. The implicit argument |
| 470 | * @p vk will be used for the @ref vk_print_result call. |
| 471 | * |
| 472 | * Use this macro when your function returns a `VkResult`. |
| 473 | * |
| 474 | * @param RET The @p VkResult to check. |
| 475 | * @param FUNC_STR String literal with the function name, used for logging. |
| 476 | * |
| 477 | * @ingroup aux_vk |
| 478 | * |
| 479 | * @see VK_CHK_WITH_RET |
| 480 | * @see VK_CHK_WITH_GOTO |
| 481 | */ |
| 482 | #define VK_CHK_AND_RETcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:482:9`!(RET, FUNC_STR) \ |
| 483 | do { \ |
| 484 | VkResult _ret = RET; \ |
| 485 | if (_ret != VK_SUCCESS) { \ |
| 486 | vk_print_result(vk, __FILE__, __LINE__, __func__, _ret, FUNC_STR); \ |
| 487 | return _ret; \ |
| 488 | } \ |
| 489 | } while (falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!) |
| 490 | |
| 491 | /*! |
| 492 | * This define will error if @p RET is not @p VK_SUCCESS, printing out that the |
| 493 | * @p FUNC_STR string has failed, then returns @p TO_RET. The implicit argument |
| 494 | * @p vk will be used for the @ref vk_print_result call. |
| 495 | * |
| 496 | * Use this macro when your function doesn't return a `VkResult`. |
| 497 | * |
| 498 | * @param RET The @p VkResult to check. |
| 499 | * @param FUNC_STR String literal with the function name, used for logging. |
| 500 | * @param TO_RET Value to return, upon error |
| 501 | * |
| 502 | * @ingroup aux_vk |
| 503 | * |
| 504 | * @see VK_CHK_AND_RET |
| 505 | * @see VK_CHK_WITH_GOTO |
| 506 | */ |
| 507 | #define VK_CHK_WITH_RETcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:507:9`!(RET, FUNC_STR, TO_RET) \ |
| 508 | do { \ |
| 509 | VkResult _ret = RET; \ |
| 510 | if (_ret != VK_SUCCESS) { \ |
| 511 | vk_print_result(vk, __FILE__, __LINE__, __func__, _ret, FUNC_STR); \ |
| 512 | return TO_RET; \ |
| 513 | } \ |
| 514 | } while (falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!) |
| 515 | |
| 516 | /*! |
| 517 | * This define will error if @p RET is not @p VK_SUCCESS, printing out that the |
| 518 | * @p FUNC_STR string has failed, then goto @p GOTO. The implicit argument @p vk |
| 519 | * will be used for the @ref vk_print_result call. |
| 520 | * |
| 521 | * Use this macro when your function needs to `goto` some cleanup code and |
| 522 | * return from there. |
| 523 | * |
| 524 | * @param RET The @p VkResult to check. |
| 525 | * @param FUNC_STR String literal with the function name, used for logging. |
| 526 | * @param GOTO Label to jump to, upon error |
| 527 | * |
| 528 | * @ingroup aux_vk |
| 529 | * |
| 530 | * @see VK_CHK_AND_RET |
| 531 | * @see VK_CHK_WITH_RET |
| 532 | */ |
| 533 | #define VK_CHK_WITH_GOTOcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:533:9`!(RET, FUNC_STR, GOTO) \ |
| 534 | do { \ |
| 535 | VkResult _ret = RET; \ |
| 536 | if (_ret != VK_SUCCESS) { \ |
| 537 | vk_print_result(vk, __FILE__, __LINE__, __func__, _ret, FUNC_STR); \ |
| 538 | goto GOTO; \ |
| 539 | } \ |
| 540 | } while (falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!) |
| 541 | |
| 542 | |
| 543 | /* |
| 544 | * |
| 545 | * String helper functions. |
| 546 | * |
| 547 | */ |
| 548 | |
| 549 | XRT_CHECK_RESULTcxx . . $ `src/xrt/include/xrt/xrt_compiler.h:65:9`! const char * |
| 550 | vk_result_stringcxx . . $ vk_result_string(bf7d002d8d68e69d).(VkResultcxx . . $ VkResult# code); |
| 551 | |
| 552 | XRT_CHECK_RESULTcxx . . $ `src/xrt/include/xrt/xrt_compiler.h:65:9`! const char * |
| 553 | vk_object_type_stringcxx . . $ vk_object_type_string(1e12a87063740d74).(VkObjectTypecxx . . $ VkObjectType# type); |
| 554 | |
| 555 | XRT_CHECK_RESULTcxx . . $ `src/xrt/include/xrt/xrt_compiler.h:65:9`! const char * |
| 556 | vk_physical_device_type_stringcxx . . $ vk_physical_device_type_string(c91842766bb7f82b).(VkPhysicalDeviceTypecxx . . $ VkPhysicalDeviceType# device_type); |
| 557 | |
| 558 | XRT_CHECK_RESULTcxx . . $ `src/xrt/include/xrt/xrt_compiler.h:65:9`! const char * |
| 559 | vk_format_stringcxx . . $ vk_format_string(64e42306f335d998).(VkFormatcxx . . $ VkFormat# code); |
| 560 | |
| 561 | XRT_CHECK_RESULTcxx . . $ `src/xrt/include/xrt/xrt_compiler.h:65:9`! const char * |
| 562 | vk_sharing_mode_stringcxx . . $ vk_sharing_mode_string(8292ad14a97d4c31).(VkSharingModecxx . . $ VkSharingMode# code); |
| 563 | |
| 564 | XRT_CHECK_RESULTcxx . . $ `src/xrt/include/xrt/xrt_compiler.h:65:9`! const char * |
| 565 | vk_present_mode_stringcxx . . $ vk_present_mode_string(612f3788232567ca).(VkPresentModeKHRcxx . . $ VkPresentModeKHR# code); |
| 566 | |
| 567 | XRT_CHECK_RESULTcxx . . $ `src/xrt/include/xrt/xrt_compiler.h:65:9`! const char * |
| 568 | vk_color_space_stringcxx . . $ vk_color_space_string(cc24aeac712eb85a).(VkColorSpaceKHRcxx . . $ VkColorSpaceKHR# code); |
| 569 | |
| 570 | XRT_CHECK_RESULTcxx . . $ `src/xrt/include/xrt/xrt_compiler.h:65:9`! const char * |
| 571 | vk_power_state_stringcxx . . $ vk_power_state_string(34c4faa5cf813041).(VkDisplayPowerStateEXTcxx . . $ VkDisplayPowerStateEXT# code); |
| 572 | |
| 573 | |
| 574 | /* |
| 575 | * |
| 576 | * Flag bits string functions. |
| 577 | * |
| 578 | */ |
| 579 | |
| 580 | /*! |
| 581 | * Returns the format feature flag if one valid bit is set, |
| 582 | * if multiple bits are set, will return 'MULTIPLE BIT SET'. |
| 583 | */ |
| 584 | XRT_CHECK_RESULTcxx . . $ `src/xrt/include/xrt/xrt_compiler.h:65:9`! const char * |
| 585 | vk_format_feature_flag_stringcxx . . $ vk_format_feature_flag_string(33f1a9e27c84db65).(VkFormatFeatureFlagBitscxx . . $ VkFormatFeatureFlagBits# bits, boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! null_on_unknown); |
| 586 | |
| 587 | /*! |
| 588 | * Returns the image usage flag if one valid bit is set, |
| 589 | * if multiple bits are set, will return 'MULTIPLE BIT SET'. |
| 590 | */ |
| 591 | XRT_CHECK_RESULTcxx . . $ `src/xrt/include/xrt/xrt_compiler.h:65:9`! const char * |
| 592 | vk_image_usage_flag_stringcxx . . $ vk_image_usage_flag_string(edb4f99e506d3f1a).(VkImageUsageFlagBitscxx . . $ VkImageUsageFlagBits# bits, boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! null_on_unknown); |
| 593 | |
| 594 | /*! |
| 595 | * Returns the composite alpha flag if one valid bit is set, |
| 596 | * if multiple bits are set, will return 'MULTIPLE BIT SET'. |
| 597 | */ |
| 598 | XRT_CHECK_RESULTcxx . . $ `src/xrt/include/xrt/xrt_compiler.h:65:9`! const char * |
| 599 | vk_composite_alpha_flag_stringcxx . . $ vk_composite_alpha_flag_string(eab8948b5130d81b).(VkCompositeAlphaFlagBitsKHRcxx . . $ VkCompositeAlphaFlagBitsKHR# bits, boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! null_on_unknown); |
| 600 | |
| 601 | /*! |
| 602 | * Returns the surface transform flag if one valid bit is set, |
| 603 | * if multiple bits are set, will return 'MULTIPLE BIT SET'. |
| 604 | */ |
| 605 | XRT_CHECK_RESULTcxx . . $ `src/xrt/include/xrt/xrt_compiler.h:65:9`! const char * |
| 606 | vk_surface_transform_flag_stringcxx . . $ vk_surface_transform_flag_string(18837b4425ed92a6).(VkSurfaceTransformFlagBitsKHRcxx . . $ VkSurfaceTransformFlagBitsKHR# bits, boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! null_on_unknown); |
| 607 | |
| 608 | #ifdef VK_KHR_displaycxx . . $ `<external>/13734482859137699468/vulkan_core.h:9129:9`! |
| 609 | /*! |
| 610 | * Returns the display plane alpha flag if one valid bit is set, |
| 611 | * if multiple bits are set, will return 'MULTIPLE BIT SET'. |
| 612 | */ |
| 613 | XRT_CHECK_RESULTcxx . . $ `src/xrt/include/xrt/xrt_compiler.h:65:9`! const char * |
| 614 | vk_display_plane_alpha_flag_stringcxx . . $ vk_display_plane_alpha_flag_string(dbb419c0607da391).(VkDisplayPlaneAlphaFlagBitsKHRcxx . . $ VkDisplayPlaneAlphaFlagBitsKHR# bits, boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! null_on_unknown); |
| 615 | #endif |
| 616 | |
| 617 | /*! |
| 618 | * Returns xrt swapchain_usage flag if one valid bit is set, |
| 619 | * if multiple bits are set, will return 'MULTIPLE BIT SET'. |
| 620 | */ |
| 621 | XRT_CHECK_RESULTcxx . . $ `src/xrt/include/xrt/xrt_compiler.h:65:9`! const char * |
| 622 | xrt_swapchain_usage_flag_stringcxx . . $ xrt_swapchain_usage_flag_string(8894f99996b16204).(enum xrt_swapchain_usage_bitscxx . . $ xrt_swapchain_usage_bits# bits, boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! null_on_unknown); |
| 623 | |
| 624 | |
| 625 | /* |
| 626 | * |
| 627 | * Function and helpers. |
| 628 | * |
| 629 | */ |
| 630 | |
| 631 | #define VK_TRACEcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:631:9`!(d, ...) U_LOG_IFL_Tcxx . . $ `src/xrt/auxiliary/util/u_logging.h:323:9`!(d->log_level, __VA_ARGS__) |
| 632 | #define VK_DEBUGcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:632:9`!(d, ...) U_LOG_IFL_Dcxx . . $ `src/xrt/auxiliary/util/u_logging.h:325:9`!(d->log_level, __VA_ARGS__) |
| 633 | #define VK_INFOcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:633:9`!(d, ...) U_LOG_IFL_Icxx . . $ `src/xrt/auxiliary/util/u_logging.h:327:9`!(d->log_level, __VA_ARGS__) |
| 634 | #define VK_WARNcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:634:9`!(d, ...) U_LOG_IFL_Wcxx . . $ `src/xrt/auxiliary/util/u_logging.h:329:9`!(d->log_level, __VA_ARGS__) |
| 635 | #define VK_ERRORcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:635:9`!(d, ...) U_LOG_IFL_Ecxx . . $ `src/xrt/auxiliary/util/u_logging.h:331:9`!(d->log_level, __VA_ARGS__) |
| 636 | |
| 637 | |
| 638 | /* |
| 639 | * |
| 640 | * Debug helper functions, in the vk_debug.c file. |
| 641 | * |
| 642 | */ |
| 643 | |
| 644 | #if defined(VK_EXT_debug_utilscxx . . $ `<external>/13734482859137699468/vulkan_core.h:15363:9`!) || defined(XRT_DOXYGEN) |
| 645 | |
| 646 | /*! |
| 647 | * Uses VK_EXT_debug_utils to set a name for an object, for easier debugging. |
| 648 | * |
| 649 | * @ingroup aux_vk |
| 650 | */ |
| 651 | void |
| 652 | vk_name_objectcxx . . $ vk_name_object(afb0a63be22642b0).(struct vk_bundlecxx . . $ vk_bundle# *vk, VkObjectTypecxx . . $ VkObjectType# type, uint64_tcxx . . $ uint64_t# object, const char *name); |
| 653 | |
| 654 | /*! |
| 655 | * Small helper for @ref vk_name_object that makes use of pre-process to avoid |
| 656 | * writing out long type names. |
| 657 | * |
| 658 | * @ingroup aux_vk |
| 659 | */ |
| 660 | #define VK_NAME_OBJcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:660:9`!(VK, TYPE, SUFFIX, OBJ, NAME) \ |
| 661 | do { \ |
| 662 | if ((VK)->has_EXT_debug_utils) { \ |
| 663 | XRT_MAYBE_UNUSEDcxx . . $ `src/xrt/include/xrt/xrt_compiler.h:53:9`! TYPE _thing = (TYPE)(OBJ); \ |
| 664 | vk_name_object(VK, VK_OBJECT_TYPE_##SUFFIX, (uint64_t)OBJ, NAME); \ |
| 665 | } \ |
| 666 | } while (falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!) |
| 667 | |
| 668 | |
| 669 | #else |
| 670 | |
| 671 | #define VK_NAME_OBJ(VK, TYPE, SUFFIX, OBJ, NAME) VK_NAME_OBJ_DISABLED(VK, TYPE, OBJ) |
| 672 | |
| 673 | #endif |
| 674 | |
| 675 | /*! |
| 676 | * Some combinations of Vulkan implementation and types are broken, we still |
| 677 | * want type safety so we have this define. Examples of broken combinations: |
| 678 | * |
| 679 | * 1. Both Mesa and the Vulkan loader didn't support setting names on the |
| 680 | * VkInstance, loader got support in 1.3.261 and Mesa hasn't as of writing. |
| 681 | * 2. For Mesa drivers we can not name VkSurfaceKHR objects on some systems as |
| 682 | * it causes memory corruption, asserts, crashes or functions failing. This |
| 683 | * is as of writing broken on the 23.2.1 release, fixed in main and scheduled |
| 684 | * for the 23.2.2 release. |
| 685 | * 3. Mesa RADV leaks the name strings for VkDescriptorSet objects for pools |
| 686 | * that we use the reset function. |
| 687 | * |
| 688 | * @ingroup aux_vk |
| 689 | */ |
| 690 | #define VK_NAME_OBJ_DISABLEDcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:690:9`!(VK, TYPE, OBJ) \ |
| 691 | do { \ |
| 692 | XRT_MAYBE_UNUSEDcxx . . $ `src/xrt/include/xrt/xrt_compiler.h:53:9`! TYPE _thing = (TYPE)(OBJ); \ |
| 693 | } while (falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!) |
| 694 | |
| 695 | |
| 696 | // clang-format off |
| 697 | // VK_DEFINE_HANDLE types are always pointers |
| 698 | #define VK_NAME_INSTANCEcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:698:9`!(VK, OBJ, NAME) VK_NAME_OBJ_DISABLEDcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:690:9`!(VK, VkInstance, (uintptr_t)OBJ) |
| 699 | #define VK_NAME_PHYSICAL_DEVICEcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:699:9`!(VK, OBJ, NAME) VK_NAME_OBJ(VK, VkPhysicalDevice, PHYSICAL_DEVICE, (uintptr_t)OBJ, NAME) |
| 700 | #define VK_NAME_DEVICEcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:700:9`!(VK, OBJ, NAME) VK_NAME_OBJcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:660:9`!(VK, VkDevice, DEVICE, (uintptr_t)OBJ, NAME) |
| 701 | #define VK_NAME_QUEUEcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:701:9`!(VK, OBJ, NAME) VK_NAME_OBJ(VK, VkQueue, QUEUE, (uintptr_t)OBJ, NAME) |
| 702 | #define VK_NAME_COMMAND_BUFFERcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:702:9`!(VK, OBJ, NAME) VK_NAME_OBJcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:660:9`!(VK, VkCommandBuffer, COMMAND_BUFFER, (uintptr_t)OBJ, NAME) |
| 703 | // VK_DEFINE_NON_DISPATCHABLE_HANDLE types are pointers in 64-bits and uint64_t in 32-bits |
| 704 | #define VK_NAME_SEMAPHOREcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:704:9`!(VK, OBJ, NAME) VK_NAME_OBJcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:660:9`!(VK, VkSemaphore, SEMAPHORE, OBJ, NAME) |
| 705 | #define VK_NAME_FENCEcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:705:9`!(VK, OBJ, NAME) VK_NAME_OBJcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:660:9`!(VK, VkFence, FENCE, OBJ, NAME) |
| 706 | #define VK_NAME_DEVICE_MEMORYcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:706:9`!(VK, OBJ, NAME) VK_NAME_OBJcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:660:9`!(VK, VkDeviceMemory, DEVICE_MEMORY, OBJ, NAME) |
| 707 | #define VK_NAME_BUFFERcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:707:9`!(VK, OBJ, NAME) VK_NAME_OBJcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:660:9`!(VK, VkBuffer, BUFFER, OBJ, NAME) |
| 708 | #define VK_NAME_IMAGEcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:708:9`!(VK, OBJ, NAME) VK_NAME_OBJcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:660:9`!(VK, VkImage, IMAGE, OBJ, NAME) |
| 709 | #define VK_NAME_EVENTcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:709:9`!(VK, OBJ, NAME) VK_NAME_OBJ(VK, VkEvent, EVENT, OBJ, NAME) |
| 710 | #define VK_NAME_QUERY_POOLcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:710:9`!(VK, OBJ, NAME) VK_NAME_OBJcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:660:9`!(VK, VkQueryPool, QUERY_POOL, OBJ, NAME) |
| 711 | #define VK_NAME_BUFFER_VIEWcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:711:9`!(VK, OBJ, NAME) VK_NAME_OBJ(VK, VkBufferView, BUFFER_VIEW, OBJ, NAME) |
| 712 | #define VK_NAME_IMAGE_VIEWcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:712:9`!(VK, OBJ, NAME) VK_NAME_OBJcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:660:9`!(VK, VkImageView, IMAGE_VIEW, OBJ, NAME) |
| 713 | #define VK_NAME_SHADER_MODULEcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:713:9`!(VK, OBJ, NAME) VK_NAME_OBJ(VK, VkShaderModule, SHADER_MODULE, OBJ, NAME) |
| 714 | #define VK_NAME_PIPELINE_CACHEcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:714:9`!(VK, OBJ, NAME) VK_NAME_OBJcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:660:9`!(VK, VkPipelineCache, PIPELINE_CACHE, OBJ, NAME) |
| 715 | #define VK_NAME_PIPELINE_LAYOUTcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:715:9`!(VK, OBJ, NAME) VK_NAME_OBJcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:660:9`!(VK, VkPipelineLayout, PIPELINE_LAYOUT, OBJ, NAME) |
| 716 | #define VK_NAME_RENDER_PASScxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:716:9`!(VK, OBJ, NAME) VK_NAME_OBJ(VK, VkRenderPass, RENDER_PASS, OBJ, NAME) |
| 717 | #define VK_NAME_PIPELINEcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:717:9`!(VK, OBJ, NAME) VK_NAME_OBJcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:660:9`!(VK, VkPipeline, PIPELINE, OBJ, NAME) |
| 718 | #define VK_NAME_DESCRIPTOR_SET_LAYOUTcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:718:9`!(VK, OBJ, NAME) VK_NAME_OBJcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:660:9`!(VK, VkDescriptorSetLayout, DESCRIPTOR_SET_LAYOUT, OBJ, NAME) |
| 719 | #define VK_NAME_SAMPLERcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:719:9`!(VK, OBJ, NAME) VK_NAME_OBJcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:660:9`!(VK, VkSampler, SAMPLER, OBJ, NAME) |
| 720 | #define VK_NAME_DESCRIPTOR_POOLcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:720:9`!(VK, OBJ, NAME) VK_NAME_OBJcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:660:9`!(VK, VkDescriptorPool, DESCRIPTOR_POOL, OBJ, NAME) |
| 721 | #define VK_NAME_DESCRIPTOR_SETcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:721:9`!(VK, OBJ, NAME) VK_NAME_OBJ_DISABLEDcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:690:9`!(VK, VkDescriptorSet, OBJ) |
| 722 | #define VK_NAME_FRAMEBUFFERcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:722:9`!(VK, OBJ, NAME) VK_NAME_OBJ(VK, VkFramebuffer, FRAMEBUFFER, OBJ, NAME) |
| 723 | #define VK_NAME_COMMAND_POOLcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:723:9`!(VK, OBJ, NAME) VK_NAME_OBJcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:660:9`!(VK, VkCommandPool, COMMAND_POOL, OBJ, NAME) |
| 724 | |
| 725 | #define VK_NAME_SURFACEcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:725:9`!(VK, OBJ, NAME) VK_NAME_OBJ_DISABLEDcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:690:9`!(VK, VkSurfaceKHR, OBJ) |
| 726 | #define VK_NAME_SWAPCHAINcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:726:9`!(VK, OBJ, NAME) VK_NAME_OBJcxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:660:9`!(VK, VkSwapchainKHR, SWAPCHAIN_KHR, OBJ, NAME) |
| 727 | // clang-format on |
| 728 | |
| 729 | |
| 730 | /* |
| 731 | * |
| 732 | * Printing helpers, in the vk_print.c file. |
| 733 | * |
| 734 | */ |
| 735 | |
| 736 | /*! |
| 737 | * Print the result of a function, info level if ret == `VK_SUCCESS` and error |
| 738 | * level otherwise. Also prints file and line. |
| 739 | * |
| 740 | * @ingroup aux_vk |
| 741 | */ |
| 742 | void |
| 743 | vk_print_resultcxx . . $ vk_print_result(b8a2e9f4072bc6bb).( |
| 744 | struct vk_bundlecxx . . $ vk_bundle# *vk, const char *file, int line, const char *calling_func, VkResultcxx . . $ VkResult# ret, const char *called_func); |
| 745 | |
| 746 | /*! |
| 747 | * Print device information to the logger at the given logging level, |
| 748 | * if the vk_bundle has that level enabled. |
| 749 | * |
| 750 | * @ingroup aux_vk |
| 751 | */ |
| 752 | void |
| 753 | vk_print_device_infocxx . . $ vk_print_device_info(103641b45f7213d8).(struct vk_bundlecxx . . $ vk_bundle# *vk, |
| 754 | enum u_logging_levelcxx . . $ u_logging_level# log_level, |
| 755 | const VkPhysicalDevicePropertiescxx . . $ VkPhysicalDeviceProperties# *pdp, |
| 756 | uint32_tcxx . . $ uint32_t# gpu_index, |
| 757 | const char *title); |
| 758 | |
| 759 | /*! |
| 760 | * Print device information about the device that bundle manages at the given |
| 761 | * logging level if the vk_bundle has that level enabled. |
| 762 | * |
| 763 | * @ingroup aux_vk |
| 764 | */ |
| 765 | void |
| 766 | vk_print_opened_device_infocxx . . $ vk_print_opened_device_info(f0d50218e094ce34).(struct vk_bundlecxx . . $ vk_bundle# *vk, enum u_logging_levelcxx . . $ u_logging_level# log_level); |
| 767 | |
| 768 | /*! |
| 769 | * Print device features to the logger at the given logging level, if the |
| 770 | * vk_bundle has that level enabled. |
| 771 | */ |
| 772 | void |
| 773 | vk_print_features_infocxx . . $ vk_print_features_info(f0d50218e094ce34).(struct vk_bundlecxx . . $ vk_bundle# *vk, enum u_logging_levelcxx . . $ u_logging_level# log_level); |
| 774 | |
| 775 | /*! |
| 776 | * Print external handle features to the logger at the given logging level, |
| 777 | * if the vk_bundle has that level enabled. |
| 778 | */ |
| 779 | void |
| 780 | vk_print_external_handles_infocxx . . $ vk_print_external_handles_info(f0d50218e094ce34).(struct vk_bundlecxx . . $ vk_bundle# *vk, enum u_logging_levelcxx . . $ u_logging_level# log_level); |
| 781 | |
| 782 | /*! |
| 783 | * Print a @p VkSwapchainCreateInfoKHR, used to log during creation. |
| 784 | */ |
| 785 | void |
| 786 | vk_print_swapchain_create_infocxx . . $ vk_print_swapchain_create_info(b523cd05963ce45).(struct vk_bundlecxx . . $ vk_bundle# *vk, VkSwapchainCreateInfoKHRcxx . . $ VkSwapchainCreateInfoKHR# *i, enum u_logging_levelcxx . . $ u_logging_level# log_level); |
| 787 | |
| 788 | #ifdef VK_KHR_displaycxx . . $ `<external>/13734482859137699468/vulkan_core.h:9129:9`! |
| 789 | /*! |
| 790 | * Print a @p VkDisplaySurfaceCreateInfoKHR, used to log during creation. |
| 791 | */ |
| 792 | void |
| 793 | vk_print_display_surface_create_infocxx . . $ vk_print_display_surface_create_info(552e6318114fb261).(struct vk_bundlecxx . . $ vk_bundle# *vk, |
| 794 | VkDisplaySurfaceCreateInfoKHRcxx . . $ VkDisplaySurfaceCreateInfoKHR# *i, |
| 795 | enum u_logging_levelcxx . . $ u_logging_level# log_level); |
| 796 | #endif |
| 797 | |
| 798 | |
| 799 | /* |
| 800 | * |
| 801 | * Enumeration helpers, in the vk_enumerate.c file. |
| 802 | * |
| 803 | */ |
| 804 | |
| 805 | /*! |
| 806 | * Return the @p VkExtensionProperties of the given @p layer_name, NULL means |
| 807 | * the "base" driver instance. |
| 808 | * |
| 809 | * @ingroup aux_vk |
| 810 | */ |
| 811 | VkResultcxx . . $ VkResult# |
| 812 | vk_enumerate_instance_extensions_propertiescxx . . $ vk_enumerate_instance_extensions_properties(6f3c4e95e8d22cb2).(struct vk_bundlecxx . . $ vk_bundle# *vk, |
| 813 | const char *layer_name, |
| 814 | uint32_tcxx . . $ uint32_t# *out_prop_count, |
| 815 | VkExtensionPropertiescxx . . $ VkExtensionProperties# **out_props); |
| 816 | |
| 817 | /*! |
| 818 | * Enumerate the physical devices of the @p VkInstance that has been opened on |
| 819 | * the given @ref vk_bundle. |
| 820 | * |
| 821 | * @ingroup aux_vk |
| 822 | */ |
| 823 | VkResultcxx . . $ VkResult# |
| 824 | vk_enumerate_physical_devicescxx . . $ vk_enumerate_physical_devices(509400cfc54b39b6).(struct vk_bundlecxx . . $ vk_bundle# *vk, |
| 825 | uint32_tcxx . . $ uint32_t# *out_physical_device_count, |
| 826 | VkPhysicalDevicecxx . . $ VkPhysicalDevice# **out_physical_devices); |
| 827 | |
| 828 | /*! |
| 829 | * Enumerate the extension properties of the given @p VkPhysicalDevice for the |
| 830 | * named @p layer_name, NULL means the "base" driver physical device. |
| 831 | * |
| 832 | * @ingroup aux_vk |
| 833 | */ |
| 834 | VkResultcxx . . $ VkResult# |
| 835 | vk_enumerate_physical_device_extension_propertiescxx . . $ vk_enumerate_physical_device_extension_properties(a01f3789a75f4dae).(struct vk_bundlecxx . . $ vk_bundle# *vk, |
| 836 | VkPhysicalDevicecxx . . $ VkPhysicalDevice# physical_device, |
| 837 | const char *layer_name, |
| 838 | uint32_tcxx . . $ uint32_t# *out_prop_count, |
| 839 | VkExtensionPropertiescxx . . $ VkExtensionProperties# **out_props); |
| 840 | |
| 841 | #if defined(VK_KHR_surfacecxx . . $ `<external>/13734482859137699468/vulkan_core.h:8816:9`!) || defined(XRT_DOXYGEN) |
| 842 | /*! |
| 843 | * Enumerate the surface formats of the given @p VkSurfaceKHR, |
| 844 | * returns a list of @p VkSurfaceFormatKHR, not @p VkFormat. |
| 845 | * |
| 846 | * @ingroup aux_vk |
| 847 | */ |
| 848 | VkResultcxx . . $ VkResult# |
| 849 | vk_enumerate_surface_formatscxx . . $ vk_enumerate_surface_formats(b60ba1ccbf2c75e2).(struct vk_bundlecxx . . $ vk_bundle# *vk, |
| 850 | VkSurfaceKHRcxx . . $ VkSurfaceKHR# surface, |
| 851 | uint32_tcxx . . $ uint32_t# *out_format_count, |
| 852 | VkSurfaceFormatKHRcxx . . $ VkSurfaceFormatKHR# **out_formats); |
| 853 | |
| 854 | /*! |
| 855 | * Enumerate the present modes of the given @p VkSurfaceKHR. |
| 856 | * |
| 857 | * @ingroup aux_vk |
| 858 | */ |
| 859 | VkResultcxx . . $ VkResult# |
| 860 | vk_enumerate_surface_present_modescxx . . $ vk_enumerate_surface_present_modes(60a9cd9cbdc90d16).(struct vk_bundlecxx . . $ vk_bundle# *vk, |
| 861 | VkSurfaceKHRcxx . . $ VkSurfaceKHR# surface, |
| 862 | uint32_tcxx . . $ uint32_t# *out_present_mode_count, |
| 863 | VkPresentModeKHRcxx . . $ VkPresentModeKHR# **out_present_modes); |
| 864 | #endif |
| 865 | |
| 866 | #if defined(VK_KHR_swapchaincxx . . $ `<external>/13734482859137699468/vulkan_core.h:8946:9`!) || defined(XRT_DOXYGEN) |
| 867 | /*! |
| 868 | * Enumerate the images of the given @p VkSwapchainKHR. |
| 869 | * |
| 870 | * @ingroup aux_vk |
| 871 | */ |
| 872 | VkResultcxx . . $ VkResult# |
| 873 | vk_enumerate_swapchain_imagescxx . . $ vk_enumerate_swapchain_images(1054fe7e134f9d0).(struct vk_bundlecxx . . $ vk_bundle# *vk, |
| 874 | VkSwapchainKHRcxx . . $ VkSwapchainKHR# swapchain, |
| 875 | uint32_tcxx . . $ uint32_t# *out_image_count, |
| 876 | VkImagecxx . . $ VkImage# **out_images); |
| 877 | #endif |
| 878 | |
| 879 | #if defined(VK_USE_PLATFORM_DISPLAY_KHRcxx . . $ `build/src/xrt/include/xrt/xrt_config_vulkan.h:17:9`!) || defined(XRT_DOXYGEN) |
| 880 | /*! |
| 881 | * Enumerate the display properties of the given @p VkPhysicalDevice. |
| 882 | * |
| 883 | * @ingroup aux_vk |
| 884 | */ |
| 885 | VkResultcxx . . $ VkResult# |
| 886 | vk_enumerate_physical_device_display_propertiescxx . . $ vk_enumerate_physical_device_display_properties(a94a2fa7940d917a).(struct vk_bundlecxx . . $ vk_bundle# *vk, |
| 887 | VkPhysicalDevicecxx . . $ VkPhysicalDevice# physical_device, |
| 888 | uint32_tcxx . . $ uint32_t# *out_prop_count, |
| 889 | VkDisplayPropertiesKHRcxx . . $ VkDisplayPropertiesKHR# **out_props); |
| 890 | |
| 891 | /*! |
| 892 | * Enumerate the display plane properties of the given @p VkPhysicalDevice. |
| 893 | * |
| 894 | * @ingroup aux_vk |
| 895 | */ |
| 896 | VkResultcxx . . $ VkResult# |
| 897 | vk_enumerate_physical_display_plane_propertiescxx . . $ vk_enumerate_physical_display_plane_properties(6320dc09260c122a).(struct vk_bundlecxx . . $ vk_bundle# *vk, |
| 898 | VkPhysicalDevicecxx . . $ VkPhysicalDevice# physical_device, |
| 899 | uint32_tcxx . . $ uint32_t# *out_prop_count, |
| 900 | VkDisplayPlanePropertiesKHRcxx . . $ VkDisplayPlanePropertiesKHR# **out_props); |
| 901 | |
| 902 | /*! |
| 903 | * Enumerate the mode properties of the given @p VkDisplayKHR, which belongs |
| 904 | * to the given @p VkPhysicalDevice. |
| 905 | * |
| 906 | * @ingroup aux_vk |
| 907 | */ |
| 908 | VkResultcxx . . $ VkResult# |
| 909 | vk_enumerate_display_mode_propertiescxx . . $ vk_enumerate_display_mode_properties(5dc7ccfde64e6a7b).(struct vk_bundlecxx . . $ vk_bundle# *vk, |
| 910 | VkPhysicalDevicecxx . . $ VkPhysicalDevice# physical_device, |
| 911 | VkDisplayKHRcxx . . $ VkDisplayKHR# display, |
| 912 | uint32_tcxx . . $ uint32_t# *out_prop_count, |
| 913 | VkDisplayModePropertiesKHRcxx . . $ VkDisplayModePropertiesKHR# **out_props); |
| 914 | #endif |
| 915 | |
| 916 | |
| 917 | /* |
| 918 | * |
| 919 | * Struct init functions, in the vk_function_loaders.c file. |
| 920 | * |
| 921 | */ |
| 922 | |
| 923 | /*! |
| 924 | * Can be done on a completely bare bundle. |
| 925 | * |
| 926 | * @ingroup aux_vk |
| 927 | */ |
| 928 | VkResultcxx . . $ VkResult# |
| 929 | vk_get_loader_functionscxx . . $ vk_get_loader_functions(eda409ff80179372).(struct vk_bundlecxx . . $ vk_bundle# *vk, PFN_vkGetInstanceProcAddrcxx . . $ PFN_vkGetInstanceProcAddr# g); |
| 930 | |
| 931 | /*! |
| 932 | * Requires a instance to have been created and set on the bundle. |
| 933 | * |
| 934 | * @ingroup aux_vk |
| 935 | */ |
| 936 | VkResultcxx . . $ VkResult# |
| 937 | vk_get_instance_functionscxx . . $ vk_get_instance_functions(eaebaf8bf4fc7983).(struct vk_bundlecxx . . $ vk_bundle# *vk); |
| 938 | |
| 939 | /*! |
| 940 | * Requires a device to have been created and set on the bundle. |
| 941 | * |
| 942 | * @ingroup aux_vk |
| 943 | */ |
| 944 | VkResultcxx . . $ VkResult# |
| 945 | vk_get_device_functionscxx . . $ vk_get_device_functions(eaebaf8bf4fc7983).(struct vk_bundlecxx . . $ vk_bundle# *vk); |
| 946 | |
| 947 | |
| 948 | /* |
| 949 | * |
| 950 | * Bundle init functions, in the vk_bundle_init.c file. |
| 951 | * |
| 952 | */ |
| 953 | |
| 954 | /*! |
| 955 | * Check if the required instance extensions are supported, if not print error |
| 956 | * message with all extensions missing, returns VK_ERROR_EXTENSION_NOT_PRESENT |
| 957 | * if not all extensions are supported. |
| 958 | * |
| 959 | * @ingroup aux_vk |
| 960 | */ |
| 961 | VkResultcxx . . $ VkResult# |
| 962 | vk_check_required_instance_extensionscxx . . $ vk_check_required_instance_extensions(a67de78cd7c920c7).(struct vk_bundlecxx . . $ vk_bundle# *vk, struct u_string_listcxx . . $ u_string_list# *required_instance_ext_list); |
| 963 | |
| 964 | /*! |
| 965 | * Only requires @ref vk_get_loader_functions to have been called. |
| 966 | * |
| 967 | * @ingroup aux_vk |
| 968 | */ |
| 969 | struct u_string_listcxx . . $ u_string_list# * |
| 970 | vk_build_instance_extensionscxx . . $ vk_build_instance_extensions(4d056a35bc24dffe).(struct vk_bundlecxx . . $ vk_bundle# *vk, |
| 971 | struct u_string_listcxx . . $ u_string_list# *required_instance_ext_list, |
| 972 | struct u_string_listcxx . . $ u_string_list# *optional_instance_ext_list); |
| 973 | |
| 974 | /*! |
| 975 | * Fills in has_* in vk_bundle given a string of prefiltered instance extensions |
| 976 | */ |
| 977 | void |
| 978 | vk_fill_in_has_instance_extensionscxx . . $ vk_fill_in_has_instance_extensions(d0a1386fce8ed176).(struct vk_bundlecxx . . $ vk_bundle# *vk, struct u_string_listcxx . . $ u_string_list# *ext_list); |
| 979 | |
| 980 | /*! |
| 981 | * Setup the physical device, this is called by vk_create_device but has uses |
| 982 | * for outside of that. |
| 983 | * |
| 984 | * @ingroup aux_vk |
| 985 | */ |
| 986 | VkResultcxx . . $ VkResult# |
| 987 | vk_select_physical_devicecxx . . $ vk_select_physical_device(477e1a28c56fd042).(struct vk_bundlecxx . . $ vk_bundle# *vk, int forced_index); |
| 988 | |
| 989 | /*! |
| 990 | * Used to enable device features as a argument @ref vk_create_device. |
| 991 | * |
| 992 | * @ingroup aux_vk |
| 993 | */ |
| 994 | struct vk_device_featurescxx . . $ vk_device_features# |
| 995 | { |
| 996 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! shader_image_gather_extendedcxx . . $ vk_device_features#shader_image_gather_extended.; |
| 997 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! shader_storage_image_write_without_formatcxx . . $ vk_device_features#shader_storage_image_write_without_format.; |
| 998 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! null_descriptorcxx . . $ vk_device_features#null_descriptor.; |
| 999 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! timeline_semaphorecxx . . $ vk_device_features#timeline_semaphore.; |
| 1000 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! synchronization_2cxx . . $ vk_device_features#synchronization_2.; |
| 1001 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! ext_fmt_resolvecxx . . $ vk_device_features#ext_fmt_resolve.; |
| 1002 | }; |
| 1003 | |
| 1004 | /*! |
| 1005 | * Creates a VkDevice and initialises the VkQueue. |
| 1006 | * |
| 1007 | * @ingroup aux_vk |
| 1008 | */ |
| 1009 | XRT_CHECK_RESULTcxx . . $ `src/xrt/include/xrt/xrt_compiler.h:65:9`! VkResultcxx . . $ VkResult# |
| 1010 | vk_create_devicecxx . . $ vk_create_device(df347edc9b71a6).(struct vk_bundlecxx . . $ vk_bundle# *vk, |
| 1011 | int forced_index, |
| 1012 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! only_compute, |
| 1013 | VkQueueGlobalPriorityEXTcxx . . $ VkQueueGlobalPriorityEXT# global_priority, |
| 1014 | struct u_string_listcxx . . $ u_string_list# *required_device_ext_list, |
| 1015 | struct u_string_listcxx . . $ u_string_list# *optional_device_ext_list, |
| 1016 | const struct vk_device_featurescxx . . $ vk_device_features# *optional_device_features); |
| 1017 | |
| 1018 | /*! |
| 1019 | * @brief Initialize mutexes in the @ref vk_bundle. |
| 1020 | * |
| 1021 | * Not required for all uses, but a precondition for some. |
| 1022 | * |
| 1023 | * @ingroup aux_vk |
| 1024 | */ |
| 1025 | VkResultcxx . . $ VkResult# |
| 1026 | vk_init_mutexcxx . . $ vk_init_mutex(eaebaf8bf4fc7983).(struct vk_bundlecxx . . $ vk_bundle# *vk); |
| 1027 | |
| 1028 | /*! |
| 1029 | * @brief De-initialize mutexes in the @ref vk_bundle. |
| 1030 | * |
| 1031 | * @ingroup aux_vk |
| 1032 | */ |
| 1033 | VkResultcxx . . $ VkResult# |
| 1034 | vk_deinit_mutexcxx . . $ vk_deinit_mutex(eaebaf8bf4fc7983).(struct vk_bundlecxx . . $ vk_bundle# *vk); |
| 1035 | |
| 1036 | /*! |
| 1037 | * Initialize a bundle with objects given to us by client code, |
| 1038 | * used by @ref client_vk_compositor in @ref comp_client. |
| 1039 | * |
| 1040 | * @ingroup aux_vk |
| 1041 | */ |
| 1042 | XRT_CHECK_RESULTcxx . . $ `src/xrt/include/xrt/xrt_compiler.h:65:9`! VkResultcxx . . $ VkResult# |
| 1043 | vk_init_from_givencxx . . $ vk_init_from_given(30962ff106a346ac).(struct vk_bundlecxx . . $ vk_bundle# *vk, |
| 1044 | PFN_vkGetInstanceProcAddrcxx . . $ PFN_vkGetInstanceProcAddr# vkGetInstanceProcAddr, |
| 1045 | VkInstancecxx . . $ VkInstance# instance, |
| 1046 | VkPhysicalDevicecxx . . $ VkPhysicalDevice# physical_device, |
| 1047 | VkDevicecxx . . $ VkDevice# device, |
| 1048 | uint32_tcxx . . $ uint32_t# queue_family_index, |
| 1049 | uint32_tcxx . . $ uint32_t# queue_index, |
| 1050 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! external_fence_fd_enabled, |
| 1051 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! external_semaphore_fd_enabled, |
| 1052 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! timeline_semaphore_enabled, |
| 1053 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! image_format_list_enabled, |
| 1054 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! debug_utils_enabled, |
| 1055 | enum u_logging_levelcxx . . $ u_logging_level# log_level); |
| 1056 | |
| 1057 | |
| 1058 | /* |
| 1059 | * |
| 1060 | * Other functions. |
| 1061 | * |
| 1062 | */ |
| 1063 | |
| 1064 | /*! |
| 1065 | * @ingroup aux_vk |
| 1066 | */ |
| 1067 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! |
| 1068 | vk_get_memory_typecxx . . $ vk_get_memory_type(948bc1a0110658ed).(struct vk_bundlecxx . . $ vk_bundle# *vk, uint32_tcxx . . $ uint32_t# type_bits, VkMemoryPropertyFlagscxx . . $ VkMemoryPropertyFlags# memory_props, uint32_tcxx . . $ uint32_t# *out_type_id); |
| 1069 | |
| 1070 | /*! |
| 1071 | * Allocate memory for an image and bind it to that image. |
| 1072 | * |
| 1073 | * Handles the following steps: |
| 1074 | * |
| 1075 | * - calling vkGetImageMemoryRequirements |
| 1076 | * - comparing against the max_size |
| 1077 | * - getting the memory type (as dictated by the VkMemoryRequirements and |
| 1078 | * VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT) |
| 1079 | * - calling vkAllocateMemory |
| 1080 | * - calling vkBindImageMemory |
| 1081 | * - calling vkDestroyMemory in case of an error. |
| 1082 | * |
| 1083 | * If this fails, it cleans up the VkDeviceMemory. |
| 1084 | * |
| 1085 | * @param vk Vulkan bundle |
| 1086 | * @param image The VkImage to allocate for and bind. |
| 1087 | * @param requirements Memory requirements used for finding the memory type and the size. |
| 1088 | * @param pNext_for_allocate (Optional) a pointer to use in the pNext chain of |
| 1089 | * VkMemoryAllocateInfo. |
| 1090 | * @param caller_name Used for error printing, this function is called from |
| 1091 | * various sources and takes next chains that could influence the result |
| 1092 | * of various calls inside of it. Since it's up to this function to print |
| 1093 | * any errors it will add the caller name to error messages. |
| 1094 | * @param out_mem Output parameter: will be set to the allocated memory if |
| 1095 | * everything succeeds. Not modified if there is an error. |
| 1096 | * @param out_size (Optional) pointer to receive the value of |
| 1097 | * VkMemoryRequirements::size. |
| 1098 | * |
| 1099 | * If this fails, you may want to destroy your VkImage as well, since this |
| 1100 | * routine is usually used in combination with vkCreateImage. |
| 1101 | * |
| 1102 | * @ingroup aux_vk |
| 1103 | */ |
| 1104 | XRT_CHECK_RESULTcxx . . $ `src/xrt/include/xrt/xrt_compiler.h:65:9`! VkResultcxx . . $ VkResult# |
| 1105 | vk_alloc_and_bind_image_memorycxx . . $ vk_alloc_and_bind_image_memory(4672d9ebeb66c57b).(struct vk_bundlecxx . . $ vk_bundle# *vk, |
| 1106 | VkImagecxx . . $ VkImage# image, |
| 1107 | const VkMemoryRequirementscxx . . $ VkMemoryRequirements# *requirements, |
| 1108 | const void *pNext_for_allocate, |
| 1109 | const char *caller_name, |
| 1110 | VkDeviceMemorycxx . . $ VkDeviceMemory# *out_mem); |
| 1111 | |
| 1112 | /*! |
| 1113 | * |
| 1114 | * @brief Creates a Vulkan device memory and image from a native graphics buffer handle. |
| 1115 | * |
| 1116 | * In case of error, ownership is never transferred and the caller should close the handle themselves. |
| 1117 | * |
| 1118 | * In case of success, the underlying Vulkan functionality's ownership semantics apply: ownership of the @p image_native |
| 1119 | * handle may have transferred, a reference may have been added, or the Vulkan objects may rely on the caller to keep |
| 1120 | * the native handle alive until the Vulkan objects are destroyed. Which option applies depends on the particular native |
| 1121 | * handle type used. |
| 1122 | * |
| 1123 | * See the corresponding specification texts: |
| 1124 | * |
| 1125 | * - Windows: |
| 1126 | * https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#VkImportMemoryWin32HandleInfoKHR |
| 1127 | * - Linux: https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#VkImportMemoryFdInfoKHR |
| 1128 | * - Android: |
| 1129 | * https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#VkImportAndroidHardwareBufferInfoANDROID |
| 1130 | * |
| 1131 | * @ingroup aux_vk |
| 1132 | */ |
| 1133 | XRT_CHECK_RESULTcxx . . $ `src/xrt/include/xrt/xrt_compiler.h:65:9`! VkResultcxx . . $ VkResult# |
| 1134 | vk_create_image_from_nativecxx . . $ vk_create_image_from_native(3645f03744904982).(struct vk_bundlecxx . . $ vk_bundle# *vk, |
| 1135 | const struct xrt_swapchain_create_infocxx . . $ xrt_swapchain_create_info# *info, |
| 1136 | struct xrt_image_nativecxx . . $ xrt_image_native# *image_native, |
| 1137 | VkImagecxx . . $ VkImage# *out_image, |
| 1138 | VkDeviceMemorycxx . . $ VkDeviceMemory# *out_mem); |
| 1139 | |
| 1140 | /*! |
| 1141 | * Given a DeviceMemory handle created to be exportable, outputs the native buffer type (FD on desktop Linux) |
| 1142 | * equivalent. |
| 1143 | * |
| 1144 | * Caller assumes ownership of handle which should be unreferenced with @ref u_graphics_buffer_unref when no longer |
| 1145 | * needed. |
| 1146 | * |
| 1147 | * @param vk Vulkan bundle |
| 1148 | * @param device_memory The memory to get the handle of |
| 1149 | * @param[out] out_handle A pointer to the handle to populate |
| 1150 | * |
| 1151 | * @ingroup aux_vk |
| 1152 | */ |
| 1153 | XRT_CHECK_RESULTcxx . . $ `src/xrt/include/xrt/xrt_compiler.h:65:9`! VkResultcxx . . $ VkResult# |
| 1154 | vk_get_native_handle_from_device_memorycxx . . $ vk_get_native_handle_from_device_memory(605afbf978a3bae4).(struct vk_bundlecxx . . $ vk_bundle# *vk, |
| 1155 | VkDeviceMemorycxx . . $ VkDeviceMemory# device_memory, |
| 1156 | xrt_graphics_buffer_handle_tcxx . . $ xrt_graphics_buffer_handle_t# *out_handle); |
| 1157 | |
| 1158 | /*! |
| 1159 | * @ingroup aux_vk |
| 1160 | * Helper to create a VkImage |
| 1161 | */ |
| 1162 | VkResultcxx . . $ VkResult# |
| 1163 | vk_create_image_simplecxx . . $ vk_create_image_simple(f9b2e7df4e0696a3).(struct vk_bundlecxx . . $ vk_bundle# *vk, |
| 1164 | VkExtent2Dcxx . . $ VkExtent2D# extent, |
| 1165 | VkFormatcxx . . $ VkFormat# format, |
| 1166 | VkImageUsageFlagscxx . . $ VkImageUsageFlags# usage, |
| 1167 | VkDeviceMemorycxx . . $ VkDeviceMemory# *out_mem, |
| 1168 | VkImagecxx . . $ VkImage# *out_image); |
| 1169 | |
| 1170 | /*! |
| 1171 | * Helper to create a mutable RG88B8A8 VkImage that specializes in the two |
| 1172 | * UNORM and SRGB variants of that formats. |
| 1173 | * |
| 1174 | * @ingroup aux_vk |
| 1175 | */ |
| 1176 | VkResultcxx . . $ VkResult# |
| 1177 | vk_create_image_mutable_rgbacxx . . $ vk_create_image_mutable_rgba(22eef1fba8069e0e).( |
| 1178 | struct vk_bundlecxx . . $ vk_bundle# *vk, VkExtent2Dcxx . . $ VkExtent2D# extent, VkImageUsageFlagscxx . . $ VkImageUsageFlags# usage, VkDeviceMemorycxx . . $ VkDeviceMemory# *out_mem, VkImagecxx . . $ VkImage# *out_image); |
| 1179 | |
| 1180 | /*! |
| 1181 | * @ingroup aux_vk |
| 1182 | * Helper to create a VkImage, with more options for tiling and memory storage. |
| 1183 | */ |
| 1184 | VkResultcxx . . $ VkResult# |
| 1185 | vk_create_image_advancedcxx . . $ vk_create_image_advanced(9e17ad31e27b0167).(struct vk_bundlecxx . . $ vk_bundle# *vk, |
| 1186 | VkExtent3Dcxx . . $ VkExtent3D# extent, |
| 1187 | VkFormatcxx . . $ VkFormat# format, |
| 1188 | VkImageTilingcxx . . $ VkImageTiling# image_tiling, |
| 1189 | VkImageUsageFlagscxx . . $ VkImageUsageFlags# image_usage_flags, |
| 1190 | VkMemoryPropertyFlagscxx . . $ VkMemoryPropertyFlags# memory_property_flags, |
| 1191 | VkDeviceMemorycxx . . $ VkDeviceMemory# *out_mem, |
| 1192 | VkImagecxx . . $ VkImage# *out_image); |
| 1193 | |
| 1194 | /*! |
| 1195 | * @ingroup aux_vk |
| 1196 | */ |
| 1197 | VkResultcxx . . $ VkResult# |
| 1198 | vk_create_samplercxx . . $ vk_create_sampler(6900a9e4c9b804bd).(struct vk_bundlecxx . . $ vk_bundle# *vk, VkSamplerAddressModecxx . . $ VkSamplerAddressMode# clamp_mode, VkSamplercxx . . $ VkSampler# *out_sampler); |
| 1199 | |
| 1200 | |
| 1201 | /* |
| 1202 | * |
| 1203 | * Helpers for creating Ãmage views. |
| 1204 | * |
| 1205 | */ |
| 1206 | |
| 1207 | /*! |
| 1208 | * @ingroup aux_vk |
| 1209 | */ |
| 1210 | VkResultcxx . . $ VkResult# |
| 1211 | vk_create_viewcxx . . $ vk_create_view(f57455d14c5a1d49).(struct vk_bundlecxx . . $ vk_bundle# *vk, |
| 1212 | VkImagecxx . . $ VkImage# image, |
| 1213 | VkImageViewTypecxx . . $ VkImageViewType# type, |
| 1214 | VkFormatcxx . . $ VkFormat# format, |
| 1215 | VkImageSubresourceRangecxx . . $ VkImageSubresourceRange# subresource_range, |
| 1216 | VkImageViewcxx . . $ VkImageView# *out_view); |
| 1217 | |
| 1218 | /*! |
| 1219 | * @ingroup aux_vk |
| 1220 | */ |
| 1221 | VkResultcxx . . $ VkResult# |
| 1222 | vk_create_view_swizzlecxx . . $ vk_create_view_swizzle(3c9fc752ca9c6866).(struct vk_bundlecxx . . $ vk_bundle# *vk, |
| 1223 | VkImagecxx . . $ VkImage# image, |
| 1224 | VkImageViewTypecxx . . $ VkImageViewType# type, |
| 1225 | VkFormatcxx . . $ VkFormat# format, |
| 1226 | VkImageSubresourceRangecxx . . $ VkImageSubresourceRange# subresource_range, |
| 1227 | VkComponentMappingcxx . . $ VkComponentMapping# components, |
| 1228 | VkImageViewcxx . . $ VkImageView# *out_view); |
| 1229 | |
| 1230 | /*! |
| 1231 | * Creates a image with a specific subset of usage, useful for a mutable images |
| 1232 | * where one format might not support all usages defined by the image. |
| 1233 | * |
| 1234 | * @ingroup aux_vk |
| 1235 | */ |
| 1236 | VkResultcxx . . $ VkResult# |
| 1237 | vk_create_view_usagecxx . . $ vk_create_view_usage(bbd93240f7a94b8a).(struct vk_bundlecxx . . $ vk_bundle# *vk, |
| 1238 | VkImagecxx . . $ VkImage# image, |
| 1239 | VkImageViewTypecxx . . $ VkImageViewType# type, |
| 1240 | VkFormatcxx . . $ VkFormat# format, |
| 1241 | VkImageUsageFlagscxx . . $ VkImageUsageFlags# image_usage, |
| 1242 | VkImageSubresourceRangecxx . . $ VkImageSubresourceRange# subresource_range, |
| 1243 | VkImageViewcxx . . $ VkImageView# *out_view); |
| 1244 | |
| 1245 | |
| 1246 | /* |
| 1247 | * |
| 1248 | * Helpers for creating descriptor pools and sets. |
| 1249 | * |
| 1250 | */ |
| 1251 | |
| 1252 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! |
| 1253 | vk_init_descriptor_poolcxx . . $ vk_init_descriptor_pool(2543554c0f10f9c4).(struct vk_bundlecxx . . $ vk_bundle# *vk, |
| 1254 | const VkDescriptorPoolSizecxx . . $ VkDescriptorPoolSize# *pool_sizes, |
| 1255 | uint32_tcxx . . $ uint32_t# pool_size_count, |
| 1256 | uint32_tcxx . . $ uint32_t# set_count, |
| 1257 | VkDescriptorPoolcxx . . $ VkDescriptorPool# *out_descriptor_pool); |
| 1258 | |
| 1259 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! |
| 1260 | vk_allocate_descriptor_setscxx . . $ vk_allocate_descriptor_sets(6943bb7dda375bcc).(struct vk_bundlecxx . . $ vk_bundle# *vk, |
| 1261 | VkDescriptorPoolcxx . . $ VkDescriptorPool# descriptor_pool, |
| 1262 | uint32_tcxx . . $ uint32_t# count, |
| 1263 | const VkDescriptorSetLayoutcxx . . $ VkDescriptorSetLayout# *set_layout, |
| 1264 | VkDescriptorSetcxx . . $ VkDescriptorSet# *sets); |
| 1265 | |
| 1266 | |
| 1267 | /* |
| 1268 | * |
| 1269 | * Helpers for creating buffers. |
| 1270 | * |
| 1271 | */ |
| 1272 | |
| 1273 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! |
| 1274 | vk_buffer_initcxx . . $ vk_buffer_init(a108cf1e000bbfb2).(struct vk_bundlecxx . . $ vk_bundle# *vk, |
| 1275 | VkDeviceSizecxx . . $ VkDeviceSize# size, |
| 1276 | VkBufferUsageFlagscxx . . $ VkBufferUsageFlags# usage, |
| 1277 | VkMemoryPropertyFlagscxx . . $ VkMemoryPropertyFlags# properties, |
| 1278 | VkBuffercxx . . $ VkBuffer# *out_buffer, |
| 1279 | VkDeviceMemorycxx . . $ VkDeviceMemory# *out_mem); |
| 1280 | |
| 1281 | void |
| 1282 | vk_buffer_destroycxx . . $ vk_buffer_destroy(33609a948196dd5c).(struct vk_buffercxx . . $ vk_buffer# *self, struct vk_bundlecxx . . $ vk_bundle# *vk); |
| 1283 | |
| 1284 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! |
| 1285 | vk_update_buffercxx . . $ vk_update_buffer(f3193a5d670cab6f).(struct vk_bundlecxx . . $ vk_bundle# *vk, float *buffer, size_tcxx . . $ size_t# buffer_size, VkDeviceMemorycxx . . $ VkDeviceMemory# memory); |
| 1286 | |
| 1287 | |
| 1288 | /* |
| 1289 | * |
| 1290 | * Helpers for writing command buffers, in the vk_helpers.c file. |
| 1291 | * |
| 1292 | */ |
| 1293 | |
| 1294 | /*! |
| 1295 | * Inserts a image barrier command, doesn't take any locks, the calling code |
| 1296 | * will need hold the lock for the pool that cmd_buffer is from or ensure it is |
| 1297 | * externally synchronized. |
| 1298 | * |
| 1299 | * @ingroup aux_vk |
| 1300 | */ |
| 1301 | void |
| 1302 | vk_cmd_image_barrier_lockedcxx . . $ vk_cmd_image_barrier_locked(1c85293722a73ff7).(struct vk_bundlecxx . . $ vk_bundle# *vk, |
| 1303 | VkCommandBuffercxx . . $ VkCommandBuffer# cmd_buffer, |
| 1304 | VkImagecxx . . $ VkImage# image, |
| 1305 | VkAccessFlagscxx . . $ VkAccessFlags# src_access_mask, |
| 1306 | VkAccessFlagscxx . . $ VkAccessFlags# dst_access_mask, |
| 1307 | VkImageLayoutcxx . . $ VkImageLayout# old_image_layout, |
| 1308 | VkImageLayoutcxx . . $ VkImageLayout# new_image_layout, |
| 1309 | VkPipelineStageFlagscxx . . $ VkPipelineStageFlags# src_stage_mask, |
| 1310 | VkPipelineStageFlagscxx . . $ VkPipelineStageFlags# dst_stage_mask, |
| 1311 | VkImageSubresourceRangecxx . . $ VkImageSubresourceRange# subresource_range); |
| 1312 | |
| 1313 | /*! |
| 1314 | * Inserts a image barrier command specifically for GPU commands, doesn't take |
| 1315 | * any locks, the calling code will need hold the lock for the pool that |
| 1316 | * cmd_buffer is from or ensure it is externally synchronized. |
| 1317 | * |
| 1318 | * @ingroup aux_vk |
| 1319 | */ |
| 1320 | void |
| 1321 | vk_cmd_image_barrier_gpu_lockedcxx . . $ vk_cmd_image_barrier_gpu_locked(2e6dfc6054c3c7dc).(struct vk_bundlecxx . . $ vk_bundle# *vk, |
| 1322 | VkCommandBuffercxx . . $ VkCommandBuffer# cmd_buffer, |
| 1323 | VkImagecxx . . $ VkImage# image, |
| 1324 | VkAccessFlagscxx . . $ VkAccessFlags# src_access_mask, |
| 1325 | VkAccessFlagscxx . . $ VkAccessFlags# dst_access_mask, |
| 1326 | VkImageLayoutcxx . . $ VkImageLayout# old_layout, |
| 1327 | VkImageLayoutcxx . . $ VkImageLayout# new_layout, |
| 1328 | VkImageSubresourceRangecxx . . $ VkImageSubresourceRange# subresource_range); |
| 1329 | |
| 1330 | #if defined(VK_EXT_debug_utilscxx . . $ `<external>/13734482859137699468/vulkan_core.h:15363:9`!) || defined(XRT_DOXYGEN) |
| 1331 | /*! |
| 1332 | * Uses VK_EXT_debug_utils to insert debug label into a VkCommandBuffer. |
| 1333 | * |
| 1334 | * In the vk_debug.c file. |
| 1335 | * |
| 1336 | * @ingroup aux_vk |
| 1337 | */ |
| 1338 | void |
| 1339 | vk_cmd_insert_labelcxx . . $ vk_cmd_insert_label(17f2dd70826b3be2).(struct vk_bundlecxx . . $ vk_bundle# *vk, VkCommandBuffercxx . . $ VkCommandBuffer# cmd_buffer, const char *name); |
| 1340 | #endif |
| 1341 | |
| 1342 | |
| 1343 | /* |
| 1344 | * |
| 1345 | * State creation helpers, in the vk_state_creators.c file. |
| 1346 | * |
| 1347 | */ |
| 1348 | |
| 1349 | /*! |
| 1350 | * Arguments to @ref vk_create_descriptor_pool function. |
| 1351 | */ |
| 1352 | struct vk_descriptor_pool_infocxx . . $ vk_descriptor_pool_info# |
| 1353 | { |
| 1354 | uint32_tcxx . . $ uint32_t# uniform_per_descriptor_countcxx . . $ vk_descriptor_pool_info#uniform_per_descriptor_count.; //!< VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER |
| 1355 | uint32_tcxx . . $ uint32_t# sampler_per_descriptor_countcxx . . $ vk_descriptor_pool_info#sampler_per_descriptor_count.; //!< VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER |
| 1356 | uint32_tcxx . . $ uint32_t# storage_image_per_descriptor_countcxx . . $ vk_descriptor_pool_info#storage_image_per_descriptor_count.; //!< VK_DESCRIPTOR_TYPE_STORAGE_IMAGE |
| 1357 | uint32_tcxx . . $ uint32_t# storage_buffer_per_descriptor_countcxx . . $ vk_descriptor_pool_info#storage_buffer_per_descriptor_count.; //!< VK_DESCRIPTOR_TYPE_STORAGE_BUFFER |
| 1358 | |
| 1359 | //! The max count of created descriptors. |
| 1360 | uint32_tcxx . . $ uint32_t# descriptor_countcxx . . $ vk_descriptor_pool_info#descriptor_count.; |
| 1361 | |
| 1362 | //! Are descriptors freeable, or must vkResetDescriptorPool be used. |
| 1363 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! freeablecxx . . $ vk_descriptor_pool_info#freeable.; |
| 1364 | }; |
| 1365 | |
| 1366 | /*! |
| 1367 | * Creates a descriptor pool, made for a single layout. |
| 1368 | * |
| 1369 | * Does error logging. |
| 1370 | */ |
| 1371 | VkResultcxx . . $ VkResult# |
| 1372 | vk_create_descriptor_poolcxx . . $ vk_create_descriptor_pool(4421125fea4d4323).(struct vk_bundlecxx . . $ vk_bundle# *vk, |
| 1373 | const struct vk_descriptor_pool_infocxx . . $ vk_descriptor_pool_info# *info, |
| 1374 | VkDescriptorPoolcxx . . $ VkDescriptorPool# *out_descriptor_pool); |
| 1375 | |
| 1376 | /*! |
| 1377 | * Creates a descriptor set. |
| 1378 | * |
| 1379 | * Does error logging. |
| 1380 | */ |
| 1381 | VkResultcxx . . $ VkResult# |
| 1382 | vk_create_descriptor_setcxx . . $ vk_create_descriptor_set(3ea8cfd8ee11c96).(struct vk_bundlecxx . . $ vk_bundle# *vk, |
| 1383 | VkDescriptorPoolcxx . . $ VkDescriptorPool# descriptor_pool, |
| 1384 | VkDescriptorSetLayoutcxx . . $ VkDescriptorSetLayout# descriptor_layout, |
| 1385 | VkDescriptorSetcxx . . $ VkDescriptorSet# *out_descriptor_set); |
| 1386 | |
| 1387 | /*! |
| 1388 | * Creates a pipeline layout from a single descriptor set layout. |
| 1389 | * |
| 1390 | * Does error logging. |
| 1391 | */ |
| 1392 | VkResultcxx . . $ VkResult# |
| 1393 | vk_create_pipeline_layoutcxx . . $ vk_create_pipeline_layout(bbbc4c4d24cf31ac).(struct vk_bundlecxx . . $ vk_bundle# *vk, |
| 1394 | VkDescriptorSetLayoutcxx . . $ VkDescriptorSetLayout# descriptor_set_layout, |
| 1395 | VkPipelineLayoutcxx . . $ VkPipelineLayout# *out_pipeline_layout); |
| 1396 | |
| 1397 | /*! |
| 1398 | * Creates a pipeline cache. |
| 1399 | * |
| 1400 | * Does error logging. |
| 1401 | */ |
| 1402 | VkResultcxx . . $ VkResult# |
| 1403 | vk_create_pipeline_cachecxx . . $ vk_create_pipeline_cache(8407ff209a3b499a).(struct vk_bundlecxx . . $ vk_bundle# *vk, VkPipelineCachecxx . . $ VkPipelineCache# *out_pipeline_cache); |
| 1404 | |
| 1405 | /*! |
| 1406 | * Creates a compute pipeline, assumes entry function is called 'main'. |
| 1407 | * |
| 1408 | * Does error logging. |
| 1409 | */ |
| 1410 | VkResultcxx . . $ VkResult# |
| 1411 | vk_create_compute_pipelinecxx . . $ vk_create_compute_pipeline(deb69c462d6d8cad).(struct vk_bundlecxx . . $ vk_bundle# *vk, |
| 1412 | VkPipelineCachecxx . . $ VkPipelineCache# pipeline_cache, |
| 1413 | VkShaderModulecxx . . $ VkShaderModule# shader, |
| 1414 | VkPipelineLayoutcxx . . $ VkPipelineLayout# pipeline_layout, |
| 1415 | const VkSpecializationInfocxx . . $ VkSpecializationInfo# *specialization_info, |
| 1416 | VkPipelinecxx . . $ VkPipeline# *out_compute_pipeline); |
| 1417 | |
| 1418 | |
| 1419 | /* |
| 1420 | * |
| 1421 | * Compositor buffer and swapchain image flags helpers, in the vk_compositor_flags.c file. |
| 1422 | * |
| 1423 | */ |
| 1424 | |
| 1425 | /*! |
| 1426 | * Return the extern handle type that a buffer should be created with. |
| 1427 | * |
| 1428 | * cb = Compositor Buffer. |
| 1429 | */ |
| 1430 | VkExternalMemoryHandleTypeFlagscxx . . $ VkExternalMemoryHandleTypeFlags# |
| 1431 | vk_cb_get_buffer_external_handle_typecxx . . $ vk_cb_get_buffer_external_handle_type(f8d4a882ea9334b6).(struct vk_bundlecxx . . $ vk_bundle# *vk); |
| 1432 | |
| 1433 | /*! |
| 1434 | * Helper for all of the supported formats to check support for. |
| 1435 | * |
| 1436 | * These are the available formats we will expose to our clients. |
| 1437 | * |
| 1438 | * In order of what we prefer. Start with a SRGB format that works on |
| 1439 | * both OpenGL and Vulkan. The two linear formats that works on both |
| 1440 | * OpenGL and Vulkan. A SRGB format that only works on Vulkan. The last |
| 1441 | * two formats should not be used as they are linear but doesn't have |
| 1442 | * enough bits to express it without resulting in banding. |
| 1443 | * |
| 1444 | * The format VK_FORMAT_A2B10G10R10_UNORM_PACK32 is not listed since |
| 1445 | * 10 bits are not considered enough to do linear colors without |
| 1446 | * banding. If there was a sRGB variant of it then we would have used it |
| 1447 | * instead but there isn't. Since it's not a popular format it's best |
| 1448 | * not to list it rather then listing it and people falling into the |
| 1449 | * trap. The absolute minimum is R11G11B10, but is a really weird format |
| 1450 | * so we are not exposing it. |
| 1451 | * |
| 1452 | * CSCI = Compositor SwapChain Images. |
| 1453 | * |
| 1454 | * @ingroup aux_vk |
| 1455 | */ |
| 1456 | #define VK_CSCI_FORMATScxx . . $ `src/xrt/auxiliary/vk/vk_helpers.h:1456:9`!(THING_COLOR, THING_DS, THING_D, THING_S) \ |
| 1457 | /* color formats */ \ |
| 1458 | THING_COLOR(R16G16B16A16_UNORM) /* OGL VK */ \ |
| 1459 | THING_COLOR(R16G16B16A16_SFLOAT) /* OGL VK */ \ |
| 1460 | THING_COLOR(R16G16B16_UNORM) /* OGL VK - Uncommon. */ \ |
| 1461 | THING_COLOR(R16G16B16_SFLOAT) /* OGL VK - Uncommon. */ \ |
| 1462 | THING_COLOR(R8G8B8A8_SRGB) /* OGL VK */ \ |
| 1463 | THING_COLOR(B8G8R8A8_SRGB) /* VK */ \ |
| 1464 | THING_COLOR(R8G8B8_SRGB) /* OGL VK - Uncommon. */ \ |
| 1465 | THING_COLOR(R8G8B8A8_UNORM) /* OGL VK - Bad color precision. */ \ |
| 1466 | THING_COLOR(B8G8R8A8_UNORM) /* VK - Bad color precision. */ \ |
| 1467 | THING_COLOR(R8G8B8_UNORM) /* OGL VK - Uncommon. Bad color precision. */ \ |
| 1468 | THING_COLOR(B8G8R8_UNORM) /* VK - Uncommon. Bad color precision. */ \ |
| 1469 | THING_COLOR(R5G6B5_UNORM_PACK16) /* OLG VK - Bad color precision. */ \ |
| 1470 | THING_COLOR(R32_SFLOAT) /* OGL VK */ \ |
| 1471 | /* depth formats */ \ |
| 1472 | THING_D(D32_SFLOAT) /* OGL VK */ \ |
| 1473 | THING_D(D16_UNORM) /* OGL VK */ \ |
| 1474 | THING_D(X8_D24_UNORM_PACK32) /* OGL VK */ \ |
| 1475 | /* depth stencil formats */ \ |
| 1476 | THING_DS(D24_UNORM_S8_UINT) /* OGL VK */ \ |
| 1477 | THING_DS(D32_SFLOAT_S8_UINT) /* OGL VK */ \ |
| 1478 | /* stencil format */ \ |
| 1479 | THING_S(S8_UINT) |
| 1480 | |
| 1481 | /*! |
| 1482 | * Returns the access flags for the compositor to app barriers. |
| 1483 | * |
| 1484 | * CSCI = Compositor SwapChain Images. |
| 1485 | */ |
| 1486 | VkAccessFlagscxx . . $ VkAccessFlags# |
| 1487 | vk_csci_get_barrier_access_maskcxx . . $ vk_csci_get_barrier_access_mask(bce5f62ce5a87717).(enum xrt_swapchain_usage_bitscxx . . $ xrt_swapchain_usage_bits# bits); |
| 1488 | |
| 1489 | /*! |
| 1490 | * Return the optimal layout for this format, this is the layout as given to the |
| 1491 | * app so is bound to the OpenXR spec. |
| 1492 | * |
| 1493 | * CSCI = Compositor SwapChain Images. |
| 1494 | */ |
| 1495 | VkImageLayoutcxx . . $ VkImageLayout# |
| 1496 | vk_csci_get_barrier_optimal_layoutcxx . . $ vk_csci_get_barrier_optimal_layout(276a258eb64712ba).(VkFormatcxx . . $ VkFormat# format); |
| 1497 | |
| 1498 | /*! |
| 1499 | * Return the barrier aspect mask for this format, this is intended for the |
| 1500 | * barriers that flush the data out before and after transfers between the |
| 1501 | * application and compositor. |
| 1502 | * |
| 1503 | * CSCI = Compositor SwapChain Images. |
| 1504 | */ |
| 1505 | VkImageAspectFlagscxx . . $ VkImageAspectFlags# |
| 1506 | vk_csci_get_barrier_aspect_maskcxx . . $ vk_csci_get_barrier_aspect_mask(3fd0d40bfc2433e4).(VkFormatcxx . . $ VkFormat# format); |
| 1507 | |
| 1508 | /*! |
| 1509 | * Returns the usage bits for a given selected format and usage. |
| 1510 | * |
| 1511 | * For color formats always adds: |
| 1512 | * * `VK_IMAGE_USAGE_SAMPLED_BIT` for compositor reading in shaders. |
| 1513 | * |
| 1514 | * For depth & stencil formats always adds: |
| 1515 | * * `VK_IMAGE_USAGE_SAMPLED_BIT` for compositor reading in shaders. |
| 1516 | * |
| 1517 | * For depth formats always adds: |
| 1518 | * * `VK_IMAGE_USAGE_SAMPLED_BIT` for compositor reading in shaders. |
| 1519 | * |
| 1520 | * For stencil formats always adds: |
| 1521 | * * `VK_IMAGE_USAGE_SAMPLED_BIT` for compositor reading in shaders. |
| 1522 | * |
| 1523 | * CSCI = Compositor SwapChain Images. |
| 1524 | */ |
| 1525 | VkImageUsageFlagscxx . . $ VkImageUsageFlags# |
| 1526 | vk_csci_get_image_usage_flagscxx . . $ vk_csci_get_image_usage_flags(9f2e35580a5589ba).(struct vk_bundlecxx . . $ vk_bundle# *vk, VkFormatcxx . . $ VkFormat# format, enum xrt_swapchain_usage_bitscxx . . $ xrt_swapchain_usage_bits# bits); |
| 1527 | |
| 1528 | /*! |
| 1529 | * For images views created by the compositor to sample the images, what aspect |
| 1530 | * should be set. For color it's the color, for depth and stencil it's only |
| 1531 | * depth as both are disallowed by the Vulkan spec, for depth only depth, and |
| 1532 | * for stencil only it's stencil. |
| 1533 | * |
| 1534 | * CSCI = Compositor SwapChain Images. |
| 1535 | */ |
| 1536 | VkImageAspectFlagscxx . . $ VkImageAspectFlags# |
| 1537 | vk_csci_get_image_view_aspectcxx . . $ vk_csci_get_image_view_aspect(70562bfdd3373f2c).(VkFormatcxx . . $ VkFormat# format, enum xrt_swapchain_usage_bitscxx . . $ xrt_swapchain_usage_bits# bits); |
| 1538 | |
| 1539 | /*! |
| 1540 | * Return the extern handle type that a image should be created with. |
| 1541 | * |
| 1542 | * CSCI = Compositor SwapChain Images. |
| 1543 | */ |
| 1544 | VkExternalMemoryHandleTypeFlagscxx . . $ VkExternalMemoryHandleTypeFlags# |
| 1545 | vk_csci_get_image_external_handle_typecxx . . $ vk_csci_get_image_external_handle_type(c380f68791533530).(struct vk_bundlecxx . . $ vk_bundle# *vk, struct xrt_image_nativecxx . . $ xrt_image_native# *xin); |
| 1546 | |
| 1547 | /*! |
| 1548 | * Get whether a given image can be imported/exported for a handle type. |
| 1549 | * |
| 1550 | * CSCI = Compositor SwapChain Images. |
| 1551 | */ |
| 1552 | void |
| 1553 | vk_csci_get_image_external_supportcxx . . $ vk_csci_get_image_external_support(3e220229b583245c).(struct vk_bundlecxx . . $ vk_bundle# *vk, |
| 1554 | VkFormatcxx . . $ VkFormat# image_format, |
| 1555 | enum xrt_swapchain_usage_bitscxx . . $ xrt_swapchain_usage_bits# bits, |
| 1556 | VkExternalMemoryHandleTypeFlagscxx . . $ VkExternalMemoryHandleTypeFlags# handle_type, |
| 1557 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! *out_importable, |
| 1558 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! *out_exportable); |
| 1559 | |
| 1560 | /*! |
| 1561 | * Verify if a format is supported for a specific usage |
| 1562 | * |
| 1563 | * CSCI = Compositor SwapChain Images. |
| 1564 | */ |
| 1565 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! |
| 1566 | vk_csci_is_format_supportedcxx . . $ vk_csci_is_format_supported(c432ea5b3e1d2c57).(struct vk_bundlecxx . . $ vk_bundle# *vk, VkFormatcxx . . $ VkFormat# format, enum xrt_swapchain_usage_bitscxx . . $ xrt_swapchain_usage_bits# xbits); |
| 1567 | |
| 1568 | /* |
| 1569 | * |
| 1570 | * Sync objects, in the vk_sync_objects.c file. |
| 1571 | * |
| 1572 | */ |
| 1573 | |
| 1574 | /*! |
| 1575 | * Is there a good likelihood that the import/export of a timeline semaphore |
| 1576 | * will succeed, in other words will the below functions work. |
| 1577 | * |
| 1578 | * @ingroup aux_vk |
| 1579 | */ |
| 1580 | XRT_CHECK_RESULTcxx . . $ `src/xrt/include/xrt/xrt_compiler.h:65:9`! boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! |
| 1581 | vk_can_import_and_export_timeline_semaphorecxx . . $ vk_can_import_and_export_timeline_semaphore(5a1bf1f7ab9ab9af).(struct vk_bundlecxx . . $ vk_bundle# *vk); |
| 1582 | |
| 1583 | /*! |
| 1584 | * @brief Creates a Vulkan fence, submits it to the default VkQueue and return |
| 1585 | * its native graphics sync handle. |
| 1586 | * |
| 1587 | * In case of error, out_native is not touched by the function. |
| 1588 | * |
| 1589 | * See @ref vk_create_fence_sync_from_native for ownership semantics on import. |
| 1590 | * |
| 1591 | * @ingroup aux_vk |
| 1592 | */ |
| 1593 | XRT_CHECK_RESULTcxx . . $ `src/xrt/include/xrt/xrt_compiler.h:65:9`! VkResultcxx . . $ VkResult# |
| 1594 | vk_create_and_submit_fence_nativecxx . . $ vk_create_and_submit_fence_native(115534554f8c05b6).(struct vk_bundlecxx . . $ vk_bundle# *vk, xrt_graphics_sync_handle_tcxx . . $ xrt_graphics_sync_handle_t# *out_native); |
| 1595 | |
| 1596 | /*! |
| 1597 | * @brief Creates a Vulkan fence from a native graphics sync handle. |
| 1598 | * |
| 1599 | * In case of error, ownership is never transferred and the caller should close the handle themselves. |
| 1600 | * |
| 1601 | * In case of success, the underlying Vulkan functionality's ownership semantics apply: ownership of the @p native |
| 1602 | * handle may have transferred, a reference may have been added, or the Vulkan object may rely on the caller to keep the |
| 1603 | * native handle alive until the Vulkan object is destroyed. Which option applies depends on the particular native |
| 1604 | * handle type used. |
| 1605 | * |
| 1606 | * See the corresponding Vulkan specification text: |
| 1607 | * https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#synchronization-fences-importing |
| 1608 | * |
| 1609 | * @ingroup aux_vk |
| 1610 | */ |
| 1611 | XRT_CHECK_RESULTcxx . . $ `src/xrt/include/xrt/xrt_compiler.h:65:9`! VkResultcxx . . $ VkResult# |
| 1612 | vk_create_fence_sync_from_nativecxx . . $ vk_create_fence_sync_from_native(d6a27ccdb039e47).(struct vk_bundlecxx . . $ vk_bundle# *vk, xrt_graphics_sync_handle_tcxx . . $ xrt_graphics_sync_handle_t# native, VkFencecxx . . $ VkFence# *out_fence); |
| 1613 | |
| 1614 | /*! |
| 1615 | * Creates a Vulkan semaphore and a native graphics sync handle. |
| 1616 | * |
| 1617 | * In case of success, the underlying Vulkan functionality's ownership semantics |
| 1618 | * apply: ownership of the @p native handle may have transferred, a reference |
| 1619 | * may have been added, or the Vulkan object may rely on the caller to keep the |
| 1620 | * native handle alive until the Vulkan object is destroyed. Which option |
| 1621 | * applies depends on the particular native handle type used. |
| 1622 | * |
| 1623 | * In case of error, neither @p out_sem and @p out_native is not touched by the |
| 1624 | * function so the caller only becomes responsible for the output on success. |
| 1625 | * |
| 1626 | * See the corresponding Vulkan specification text: |
| 1627 | * https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.html#synchronization-semaphores |
| 1628 | * |
| 1629 | * @ingroup aux_vk |
| 1630 | */ |
| 1631 | XRT_CHECK_RESULTcxx . . $ `src/xrt/include/xrt/xrt_compiler.h:65:9`! VkResultcxx . . $ VkResult# |
| 1632 | vk_create_semaphore_and_nativecxx . . $ vk_create_semaphore_and_native(b41591c94c625b69).(struct vk_bundlecxx . . $ vk_bundle# *vk, VkSemaphorecxx . . $ VkSemaphore# *out_sem, xrt_graphics_sync_handle_tcxx . . $ xrt_graphics_sync_handle_t# *out_native); |
| 1633 | |
| 1634 | #if defined(VK_KHR_timeline_semaphorecxx . . $ `<external>/13734482859137699468/vulkan_core.h:11531:9`!) || defined(XRT_DOXYGEN) |
| 1635 | /* |
| 1636 | * Creates a Vulkan timeline semaphore and a native graphics sync |
| 1637 | * handle, see @ref vk_create_semaphore_and_native for more details. |
| 1638 | * |
| 1639 | * @ingroup aux_vk |
| 1640 | */ |
| 1641 | XRT_CHECK_RESULTcxx . . $ `src/xrt/include/xrt/xrt_compiler.h:65:9`! VkResultcxx . . $ VkResult# |
| 1642 | vk_create_timeline_semaphore_and_nativecxx . . $ vk_create_timeline_semaphore_and_native(b41591c94c625b69).(struct vk_bundlecxx . . $ vk_bundle# *vk, |
| 1643 | VkSemaphorecxx . . $ VkSemaphore# *out_sem, |
| 1644 | xrt_graphics_sync_handle_tcxx . . $ xrt_graphics_sync_handle_t# *out_native); |
| 1645 | #endif |
| 1646 | |
| 1647 | /*! |
| 1648 | * @brief Creates a Vulkan semaphore from a native graphics sync handle. |
| 1649 | * |
| 1650 | * In case of error, ownership is never transferred and the caller should close the handle themselves. |
| 1651 | * |
| 1652 | * In case of success, the underlying Vulkan functionality's ownership semantics apply: ownership of the @p native |
| 1653 | * handle may have transferred, a reference may have been added, or the Vulkan object may rely on the caller to keep the |
| 1654 | * native handle alive until the Vulkan object is destroyed. Which option applies depends on the particular native |
| 1655 | * handle type used. |
| 1656 | * |
| 1657 | * @ingroup aux_vk |
| 1658 | */ |
| 1659 | XRT_CHECK_RESULTcxx . . $ `src/xrt/include/xrt/xrt_compiler.h:65:9`! VkResultcxx . . $ VkResult# |
| 1660 | vk_create_semaphore_from_nativecxx . . $ vk_create_semaphore_from_native(220a04376ba3c).(struct vk_bundlecxx . . $ vk_bundle# *vk, xrt_graphics_sync_handle_tcxx . . $ xrt_graphics_sync_handle_t# native, VkSemaphorecxx . . $ VkSemaphore# *out_sem); |
| 1661 | |
| 1662 | #if defined(VK_KHR_timeline_semaphorecxx . . $ `<external>/13734482859137699468/vulkan_core.h:11531:9`!) || defined(XRT_DOXYGEN) |
| 1663 | /*! |
| 1664 | * @brief Creates a Vulkan timeline semaphore from a native graphics sync |
| 1665 | * handle, see @ref vk_create_semaphore_from_native for more details. |
| 1666 | * |
| 1667 | * @ingroup aux_vk |
| 1668 | */ |
| 1669 | XRT_CHECK_RESULTcxx . . $ `src/xrt/include/xrt/xrt_compiler.h:65:9`! VkResultcxx . . $ VkResult# |
| 1670 | vk_create_timeline_semaphore_from_nativecxx . . $ vk_create_timeline_semaphore_from_native(220a04376ba3c).(struct vk_bundlecxx . . $ vk_bundle# *vk, xrt_graphics_sync_handle_tcxx . . $ xrt_graphics_sync_handle_t# native, VkSemaphorecxx . . $ VkSemaphore# *out_sem); |
| 1671 | #endif |
| 1672 | |
| 1673 | |
| 1674 | /* |
| 1675 | * |
| 1676 | * Time function(s), in the vk_time.c file. |
| 1677 | * |
| 1678 | */ |
| 1679 | |
| 1680 | #if defined(VK_EXT_calibrated_timestampscxx . . $ `<external>/13734482859137699468/vulkan_core.h:16980:9`!) || defined(XRT_DOXYGEN) |
| 1681 | /*! |
| 1682 | * Convert timestamps in GPU ticks (as return by VkQueryPool timestamp queries) |
| 1683 | * into host CPU nanoseconds, same time domain as @ref os_monotonic_get_ns. |
| 1684 | * |
| 1685 | * Note the timestamp needs to be in the past and not to old, this is because |
| 1686 | * not all GPU has full 64 bit timer resolution. For instance a Intel GPU "only" |
| 1687 | * have 36 bits of valid timestamp and a tick period 83.3333 nanosecond, |
| 1688 | * equating to an epoch of 5726 seconds before overflowing. The function can |
| 1689 | * handle overflows happening between the given timestamps and when it is called |
| 1690 | * but only for one such epoch overflow, any more will only be treated as one |
| 1691 | * such overflow. So timestamps needs to be converted reasonably soon after they |
| 1692 | * have been captured. |
| 1693 | * |
| 1694 | * @param vk The Vulkan bundle. |
| 1695 | * @param count Number of timestamps to be converted. |
| 1696 | * @param[in,out] in_out_timestamps Array of timestamps to be converted, done in place. |
| 1697 | * |
| 1698 | * @ingroup aux_vk |
| 1699 | */ |
| 1700 | XRT_CHECK_RESULTcxx . . $ `src/xrt/include/xrt/xrt_compiler.h:65:9`! VkResultcxx . . $ VkResult# |
| 1701 | vk_convert_timestamps_to_host_nscxx . . $ vk_convert_timestamps_to_host_ns(e2d8ce355ca149bc).(struct vk_bundlecxx . . $ vk_bundle# *vk, uint32_tcxx . . $ uint32_t# count, uint64_tcxx . . $ uint64_t# *in_out_timestamps); |
| 1702 | #endif |
| 1703 | |
| 1704 | |
| 1705 | #ifdef __cpluspluscxx . . $ `<built-in>:485:9`! |
| 1706 | } |
| 1707 | #endif |