2019-07-06 05:42:53 +00:00
|
|
|
#ifndef EXPORTED_VULKAN_FUNCTION
|
|
|
|
#define EXPORTED_VULKAN_FUNCTION(function)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
EXPORTED_VULKAN_FUNCTION (vkGetInstanceProcAddr)
|
|
|
|
|
|
|
|
#undef EXPORTED_VULKAN_FUNCTION
|
|
|
|
|
|
|
|
#ifndef GLOBAL_LEVEL_VULKAN_FUNCTION
|
|
|
|
#define GLOBAL_LEVEL_VULKAN_FUNCTION(function)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
GLOBAL_LEVEL_VULKAN_FUNCTION (vkEnumerateInstanceVersion)
|
|
|
|
GLOBAL_LEVEL_VULKAN_FUNCTION (vkEnumerateInstanceExtensionProperties)
|
|
|
|
GLOBAL_LEVEL_VULKAN_FUNCTION (vkEnumerateInstanceLayerProperties)
|
|
|
|
GLOBAL_LEVEL_VULKAN_FUNCTION (vkCreateInstance)
|
|
|
|
|
|
|
|
#undef GLOBAL_LEVEL_VULKAN_FUNCTION
|
|
|
|
|
|
|
|
#ifndef INSTANCE_LEVEL_VULKAN_FUNCTION
|
|
|
|
#define INSTANCE_LEVEL_VULKAN_FUNCTION(function)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
INSTANCE_LEVEL_VULKAN_FUNCTION (vkEnumeratePhysicalDevices)
|
|
|
|
INSTANCE_LEVEL_VULKAN_FUNCTION (vkGetPhysicalDeviceProperties)
|
|
|
|
INSTANCE_LEVEL_VULKAN_FUNCTION (vkGetPhysicalDeviceFeatures)
|
2019-07-06 16:28:05 +00:00
|
|
|
INSTANCE_LEVEL_VULKAN_FUNCTION (vkGetPhysicalDeviceQueueFamilyProperties)
|
2019-07-06 05:42:53 +00:00
|
|
|
INSTANCE_LEVEL_VULKAN_FUNCTION (vkCreateDevice)
|
|
|
|
INSTANCE_LEVEL_VULKAN_FUNCTION (vkGetDeviceProcAddr)
|
2019-07-06 16:28:05 +00:00
|
|
|
INSTANCE_LEVEL_VULKAN_FUNCTION (vkDestroyInstance)
|
2019-07-06 05:42:53 +00:00
|
|
|
INSTANCE_LEVEL_VULKAN_FUNCTION (vkEnumerateDeviceLayerProperties)
|
|
|
|
INSTANCE_LEVEL_VULKAN_FUNCTION (vkEnumerateDeviceExtensionProperties)
|
|
|
|
INSTANCE_LEVEL_VULKAN_FUNCTION (vkGetPhysicalDeviceMemoryProperties)
|
2020-02-17 11:29:35 +00:00
|
|
|
INSTANCE_LEVEL_VULKAN_FUNCTION (vkGetPhysicalDeviceFormatProperties)
|
2019-07-06 05:42:53 +00:00
|
|
|
|
|
|
|
#undef INSTANCE_LEVEL_VULKAN_FUNCTION
|
|
|
|
|
2019-07-10 04:16:46 +00:00
|
|
|
#ifndef INSTANCE_LEVEL_VULKAN_FUNCTION_FROM_EXTENSION
|
|
|
|
#define INSTANCE_LEVEL_VULKAN_FUNCTION_FROM_EXTENSION(function, extension)
|
2019-07-06 05:42:53 +00:00
|
|
|
#endif
|
|
|
|
|
2019-07-10 04:16:46 +00:00
|
|
|
INSTANCE_LEVEL_VULKAN_FUNCTION_FROM_EXTENSION
|
2019-07-12 04:15:25 +00:00
|
|
|
(vkCreateDebugUtilsMessengerEXT, VK_EXT_DEBUG_UTILS_EXTENSION_NAME)
|
2019-07-12 16:11:34 +00:00
|
|
|
INSTANCE_LEVEL_VULKAN_FUNCTION_FROM_EXTENSION
|
|
|
|
(vkDestroyDebugUtilsMessengerEXT, VK_EXT_DEBUG_UTILS_EXTENSION_NAME)
|
2019-07-12 04:15:25 +00:00
|
|
|
INSTANCE_LEVEL_VULKAN_FUNCTION_FROM_EXTENSION
|
|
|
|
(vkGetPhysicalDeviceSurfaceSupportKHR, VK_KHR_SURFACE_EXTENSION_NAME)
|
|
|
|
INSTANCE_LEVEL_VULKAN_FUNCTION_FROM_EXTENSION
|
|
|
|
(vkGetPhysicalDeviceSurfacePresentModesKHR, VK_KHR_SURFACE_EXTENSION_NAME)
|
|
|
|
INSTANCE_LEVEL_VULKAN_FUNCTION_FROM_EXTENSION
|
|
|
|
(vkGetPhysicalDeviceSurfaceCapabilitiesKHR, VK_KHR_SURFACE_EXTENSION_NAME)
|
|
|
|
INSTANCE_LEVEL_VULKAN_FUNCTION_FROM_EXTENSION
|
|
|
|
(vkGetPhysicalDeviceSurfaceFormatsKHR, VK_KHR_SURFACE_EXTENSION_NAME)
|
2019-07-12 15:36:21 +00:00
|
|
|
INSTANCE_LEVEL_VULKAN_FUNCTION_FROM_EXTENSION
|
|
|
|
(vkDestroySurfaceKHR, VK_KHR_SURFACE_EXTENSION_NAME)
|
2019-07-12 04:15:25 +00:00
|
|
|
|
|
|
|
#undef INSTANCE_LEVEL_VULKAN_FUNCTION_FROM_EXTENSION
|
|
|
|
|
|
|
|
#ifndef PRESENTATION_VULKAN_FUNCTION_FROM_EXTENSION
|
|
|
|
#define PRESENTATION_VULKAN_FUNCTION_FROM_EXTENSION(function, extension)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(VK_USE_PLATFORM_XLIB_KHR)
|
|
|
|
PRESENTATION_VULKAN_FUNCTION_FROM_EXTENSION
|
2019-07-10 04:16:46 +00:00
|
|
|
(vkGetPhysicalDeviceXlibPresentationSupportKHR,
|
|
|
|
VK_KHR_XLIB_SURFACE_EXTENSION_NAME)
|
2019-07-12 04:15:25 +00:00
|
|
|
PRESENTATION_VULKAN_FUNCTION_FROM_EXTENSION
|
2019-07-10 04:16:46 +00:00
|
|
|
(vkCreateXlibSurfaceKHR,
|
|
|
|
VK_KHR_XLIB_SURFACE_EXTENSION_NAME)
|
|
|
|
#elif defined(VK_USE_PLATFORM_WIN32_KHR)
|
2019-07-12 04:15:25 +00:00
|
|
|
PRESENTATION_VULKAN_FUNCTION_FROM_EXTENSION
|
2019-07-10 04:16:46 +00:00
|
|
|
(vkGetPhysicalDeviceWin32PresentationSupportKHR,
|
|
|
|
VK_KHR_WIN32_SURFACE_EXTENSION_NAME)
|
2019-07-12 04:15:25 +00:00
|
|
|
PRESENTATION_VULKAN_FUNCTION_FROM_EXTENSION
|
2019-07-10 04:16:46 +00:00
|
|
|
(vkCreateWin32SurfaceKHR,
|
|
|
|
VK_KHR_WIN32_SURFACE_EXTENSION_NAME)
|
|
|
|
#elif defined(VK_USE_PLATFORM_XCB_KHR)
|
2019-07-12 04:15:25 +00:00
|
|
|
PRESENTATION_VULKAN_FUNCTION_FROM_EXTENSION
|
2019-07-10 04:16:46 +00:00
|
|
|
(vkGetPhysicalDeviceXcbPresentationSupportKHR,
|
|
|
|
VK_KHR_XCB_SURFACE_EXTENSION_NAME)
|
2019-07-12 04:15:25 +00:00
|
|
|
PRESENTATION_VULKAN_FUNCTION_FROM_EXTENSION
|
2019-07-10 04:16:46 +00:00
|
|
|
(vkCreateXcbSurfaceKHR,
|
|
|
|
VK_KHR_XCB_SURFACE_EXTENSION_NAME)
|
|
|
|
#endif
|
2019-07-06 05:42:53 +00:00
|
|
|
|
2019-07-12 04:15:25 +00:00
|
|
|
#undef PRESENTATION_VULKAN_FUNCTION_FROM_EXTENSION
|
2019-07-06 05:42:53 +00:00
|
|
|
|
|
|
|
#ifndef DEVICE_LEVEL_VULKAN_FUNCTION
|
|
|
|
#define DEVICE_LEVEL_VULKAN_FUNCTION(function)
|
|
|
|
#endif
|
|
|
|
|
2019-07-07 05:34:02 +00:00
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkDestroyDevice)
|
2019-07-06 16:28:05 +00:00
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkGetDeviceQueue)
|
2019-07-23 03:28:57 +00:00
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkCreateCommandPool)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkResetCommandPool)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkAllocateCommandBuffers)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkBeginCommandBuffer)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkEndCommandBuffer)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkResetCommandBuffer)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkCreateSemaphore)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkCreateFence)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkWaitForFences)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkResetFences)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkQueueSubmit)
|
2019-07-23 04:05:32 +00:00
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkQueueWaitIdle)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkDeviceWaitIdle)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkDestroyFence)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkDestroySemaphore)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkFreeCommandBuffers)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkDestroyCommandPool)
|
2020-02-11 00:37:04 +00:00
|
|
|
|
2020-02-10 06:07:35 +00:00
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkCreateBuffer)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkGetBufferMemoryRequirements)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkBindBufferMemory)
|
2020-02-10 09:17:58 +00:00
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkCreateBufferView)
|
2020-02-11 00:37:04 +00:00
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkDestroyBufferView)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkDestroyBuffer)
|
2020-02-10 06:07:35 +00:00
|
|
|
|
2020-02-10 09:18:37 +00:00
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkCreateImage)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkGetImageMemoryRequirements)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkBindImageMemory)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkCreateImageView)
|
2020-02-11 00:37:04 +00:00
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkDestroyImageView)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkDestroyImage)
|
2020-02-10 09:18:37 +00:00
|
|
|
|
2020-02-11 00:37:04 +00:00
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkAllocateMemory)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkFreeMemory)
|
2020-02-10 11:42:19 +00:00
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkMapMemory)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkUnmapMemory)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkFlushMappedMemoryRanges)
|
|
|
|
|
2020-02-12 07:36:01 +00:00
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkCreateSampler)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkCreateDescriptorSetLayout)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkCreateDescriptorPool)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkAllocateDescriptorSets)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkUpdateDescriptorSets)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkFreeDescriptorSets)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkResetDescriptorPool)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkDestroyDescriptorPool)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkDestroyDescriptorSetLayout)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkDestroySampler)
|
|
|
|
|
2020-02-12 09:55:51 +00:00
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkCreateRenderPass)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkCreateFramebuffer)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkDestroyRenderPass)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkDestroyFramebuffer)
|
|
|
|
|
2020-02-12 19:21:35 +00:00
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkCreateShaderModule)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkDestroyShaderModule)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkCreatePipelineCache)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkGetPipelineCacheData)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkMergePipelineCaches)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkDestroyPipelineCache)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkCreatePipelineLayout)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkDestroyPipelineLayout)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkCreateGraphicsPipelines)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkCreateComputePipelines)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkDestroyPipeline)
|
|
|
|
|
2020-02-10 06:07:35 +00:00
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkCmdPipelineBarrier)
|
2020-02-10 11:42:19 +00:00
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkCmdCopyBuffer)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkCmdCopyBufferToImage)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkCmdCopyImageToBuffer)
|
2020-02-12 09:55:51 +00:00
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkCmdBeginRenderPass)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkCmdNextSubpass)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkCmdEndRenderPass)
|
2020-02-12 19:21:35 +00:00
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkCmdBindPipeline)
|
2020-02-17 16:03:36 +00:00
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkCmdClearColorImage)
|
2021-01-12 02:27:41 +00:00
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkCmdExecuteCommands)
|
|
|
|
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkCmdSetViewport)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkCmdSetScissor)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkCmdBindVertexBuffers)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkCmdBindIndexBuffer)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkCmdBindDescriptorSets)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkCmdDrawIndexed)
|
2019-07-06 16:28:05 +00:00
|
|
|
|
2019-07-06 05:42:53 +00:00
|
|
|
#undef DEVICE_LEVEL_VULKAN_FUNCTION
|
|
|
|
|
2019-07-10 04:16:46 +00:00
|
|
|
#ifndef DEVICE_LEVEL_VULKAN_FUNCTION_FROM_EXTENSION
|
|
|
|
#define DEVICE_LEVEL_VULKAN_FUNCTION_FROM_EXTENSION(function, extension)
|
2019-07-06 05:42:53 +00:00
|
|
|
#endif
|
|
|
|
|
2019-07-10 15:58:14 +00:00
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION_FROM_EXTENSION
|
2019-07-12 05:09:12 +00:00
|
|
|
(vkCreateSwapchainKHR, VK_KHR_SWAPCHAIN_EXTENSION_NAME)
|
2019-07-10 15:58:14 +00:00
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION_FROM_EXTENSION
|
2019-07-12 05:09:12 +00:00
|
|
|
(vkDestroySwapchainKHR, VK_KHR_SWAPCHAIN_EXTENSION_NAME)
|
2019-07-10 15:58:14 +00:00
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION_FROM_EXTENSION
|
2019-07-12 05:09:12 +00:00
|
|
|
(vkGetSwapchainImagesKHR, VK_KHR_SWAPCHAIN_EXTENSION_NAME)
|
2019-07-12 15:36:21 +00:00
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION_FROM_EXTENSION
|
|
|
|
(vkAcquireNextImageKHR, VK_KHR_SWAPCHAIN_EXTENSION_NAME)
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION_FROM_EXTENSION
|
|
|
|
(vkQueuePresentKHR, VK_KHR_SWAPCHAIN_EXTENSION_NAME)
|
2019-07-10 15:58:14 +00:00
|
|
|
|
2019-07-10 04:16:46 +00:00
|
|
|
#undef DEVICE_LEVEL_VULKAN_FUNCTION_FROM_EXTENSION
|