[vulkan] Move on to vulkan api 1.3

I decided there's little point in hanging onto old API versions when the
newer ones have some nice things like vkCmdCopyImage2.
This commit is contained in:
Bill Currie 2023-12-14 21:39:15 +09:00
parent c36c2dc8b2
commit 5637bae20c
3 changed files with 7 additions and 1 deletions

View file

@ -171,6 +171,7 @@ DEVICE_LEVEL_VULKAN_FUNCTION (vkCmdCopyBuffer)
DEVICE_LEVEL_VULKAN_FUNCTION (vkCmdCopyBufferToImage) DEVICE_LEVEL_VULKAN_FUNCTION (vkCmdCopyBufferToImage)
DEVICE_LEVEL_VULKAN_FUNCTION (vkCmdCopyImageToBuffer) DEVICE_LEVEL_VULKAN_FUNCTION (vkCmdCopyImageToBuffer)
DEVICE_LEVEL_VULKAN_FUNCTION (vkCmdCopyImage) DEVICE_LEVEL_VULKAN_FUNCTION (vkCmdCopyImage)
DEVICE_LEVEL_VULKAN_FUNCTION (vkCmdCopyImage2)
DEVICE_LEVEL_VULKAN_FUNCTION (vkCmdBlitImage) DEVICE_LEVEL_VULKAN_FUNCTION (vkCmdBlitImage)
DEVICE_LEVEL_VULKAN_FUNCTION (vkCmdBeginRenderPass) DEVICE_LEVEL_VULKAN_FUNCTION (vkCmdBeginRenderPass)
DEVICE_LEVEL_VULKAN_FUNCTION (vkCmdNextSubpass) DEVICE_LEVEL_VULKAN_FUNCTION (vkCmdNextSubpass)

View file

@ -45,6 +45,7 @@ typedef struct qfv_physdev_s {
VkPhysicalDeviceProperties2 p; VkPhysicalDeviceProperties2 p;
VkPhysicalDeviceVulkan11Properties v11Properties; VkPhysicalDeviceVulkan11Properties v11Properties;
VkPhysicalDeviceVulkan12Properties v12Properties; VkPhysicalDeviceVulkan12Properties v12Properties;
VkPhysicalDeviceVulkan13Properties v13Properties;
VkPhysicalDeviceMemoryProperties memory_properties; VkPhysicalDeviceMemoryProperties memory_properties;
} qfv_physdev_t; } qfv_physdev_t;

View file

@ -208,7 +208,7 @@ QFV_CreateInstance (vulkan_ctx_t *ctx,
VK_STRUCTURE_TYPE_APPLICATION_INFO, 0, VK_STRUCTURE_TYPE_APPLICATION_INFO, 0,
appName, appVersion, appName, appVersion,
PACKAGE_STRING, 0x000702ff, //FIXME version PACKAGE_STRING, 0x000702ff, //FIXME version
VK_API_VERSION_1_2, VK_API_VERSION_1_3,
}; };
VkInstanceCreateInfo createInfo = { VkInstanceCreateInfo createInfo = {
VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO, 0, 0, VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO, 0, 0,
@ -289,6 +289,10 @@ QFV_CreateInstance (vulkan_ctx_t *ctx,
}; };
dev->v12Properties = (VkPhysicalDeviceVulkan12Properties) { dev->v12Properties = (VkPhysicalDeviceVulkan12Properties) {
.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_PROPERTIES, .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_PROPERTIES,
.pNext = &dev->v13Properties,
};
dev->v13Properties = (VkPhysicalDeviceVulkan13Properties) {
.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_3_PROPERTIES,
}; };
ifunc->vkGetPhysicalDeviceProperties2 (physDev, &dev->p); ifunc->vkGetPhysicalDeviceProperties2 (physDev, &dev->p);
ifunc->vkGetPhysicalDeviceMemoryProperties (physDev, ifunc->vkGetPhysicalDeviceMemoryProperties (physDev,