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)
|
|
|
|
|
|
|
|
#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
|
|
|
#if defined(VK_USE_PLATFORM_XLIB_KHR)
|
|
|
|
INSTANCE_LEVEL_VULKAN_FUNCTION_FROM_EXTENSION
|
|
|
|
(vkGetPhysicalDeviceXlibPresentationSupportKHR,
|
|
|
|
VK_KHR_XLIB_SURFACE_EXTENSION_NAME)
|
|
|
|
INSTANCE_LEVEL_VULKAN_FUNCTION_FROM_EXTENSION
|
|
|
|
(vkCreateXlibSurfaceKHR,
|
|
|
|
VK_KHR_XLIB_SURFACE_EXTENSION_NAME)
|
|
|
|
#elif defined(VK_USE_PLATFORM_WIN32_KHR)
|
|
|
|
INSTANCE_LEVEL_VULKAN_FUNCTION_FROM_EXTENSION
|
|
|
|
(vkGetPhysicalDeviceWin32PresentationSupportKHR,
|
|
|
|
VK_KHR_WIN32_SURFACE_EXTENSION_NAME)
|
|
|
|
INSTANCE_LEVEL_VULKAN_FUNCTION_FROM_EXTENSION
|
|
|
|
(vkCreateWin32SurfaceKHR,
|
|
|
|
VK_KHR_WIN32_SURFACE_EXTENSION_NAME)
|
|
|
|
#elif defined(VK_USE_PLATFORM_XCB_KHR)
|
|
|
|
INSTANCE_LEVEL_VULKAN_FUNCTION_FROM_EXTENSION
|
|
|
|
(vkGetPhysicalDeviceXcbPresentationSupportKHR,
|
|
|
|
VK_KHR_XCB_SURFACE_EXTENSION_NAME)
|
|
|
|
INSTANCE_LEVEL_VULKAN_FUNCTION_FROM_EXTENSION
|
|
|
|
(vkCreateXcbSurfaceKHR,
|
|
|
|
VK_KHR_XCB_SURFACE_EXTENSION_NAME)
|
|
|
|
#else
|
|
|
|
INSTANCE_LEVEL_VULKAN_FUNCTION_FROM_EXTENSION
|
|
|
|
(vkCreateDebugUtilsMessengerEXT, VK_EXT_DEBUG_UTILS_EXTENSION_NAME)
|
|
|
|
#endif
|
2019-07-06 05:42:53 +00:00
|
|
|
|
2019-07-10 04:16:46 +00:00
|
|
|
#undef INSTANCE_LEVEL_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-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 04:16:46 +00:00
|
|
|
#undef DEVICE_LEVEL_VULKAN_FUNCTION_FROM_EXTENSION
|