mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-11 15:51:36 +00:00
ab08e4f207
A single graphics-capable queue should be enough for now. However, I'm not sure I'm happy with a lot of the code: it's a bit difficult to write flexibly configured code for Vulkan (or seems to be at this stage), especially in C.
57 lines
1.8 KiB
C
57 lines
1.8 KiB
C
#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)
|
|
INSTANCE_LEVEL_VULKAN_FUNCTION (vkGetPhysicalDeviceQueueFamilyProperties)
|
|
INSTANCE_LEVEL_VULKAN_FUNCTION (vkCreateDevice)
|
|
INSTANCE_LEVEL_VULKAN_FUNCTION (vkGetDeviceProcAddr)
|
|
INSTANCE_LEVEL_VULKAN_FUNCTION (vkDestroyInstance)
|
|
INSTANCE_LEVEL_VULKAN_FUNCTION (vkEnumerateDeviceLayerProperties)
|
|
INSTANCE_LEVEL_VULKAN_FUNCTION (vkEnumerateDeviceExtensionProperties)
|
|
INSTANCE_LEVEL_VULKAN_FUNCTION (vkGetPhysicalDeviceMemoryProperties)
|
|
|
|
#undef INSTANCE_LEVEL_VULKAN_FUNCTION
|
|
|
|
#ifndef INSTANCE_LEVEL_VULKAN_FUNCTION_EXTENSION
|
|
#define INSTANCE_LEVEL_VULKAN_FUNCTION_EXTENSION(function)
|
|
#endif
|
|
|
|
INSTANCE_LEVEL_VULKAN_FUNCTION_EXTENSION (vkCreateDebugUtilsMessengerEXT)
|
|
|
|
#undef INSTANCE_LEVEL_VULKAN_FUNCTION_EXTENSION
|
|
|
|
#ifndef DEVICE_LEVEL_VULKAN_FUNCTION
|
|
#define DEVICE_LEVEL_VULKAN_FUNCTION(function)
|
|
#endif
|
|
|
|
DEVICE_LEVEL_VULKAN_FUNCTION (vkGetDeviceQueue)
|
|
|
|
#undef DEVICE_LEVEL_VULKAN_FUNCTION
|
|
|
|
#ifndef DEVICE_LEVEL_VULKAN_FUNCTION_EXTENSION
|
|
#define DEVICE_LEVEL_VULKAN_FUNCTION_EXTENSION(function)
|
|
#endif
|
|
|
|
#undef DEVICE_LEVEL_VULKAN_FUNCTION_EXTENSION
|