From 2a9136feb46b2491e9d93c7980bc69bed7eae6a8 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Tue, 14 Jul 2015 17:05:28 -0700 Subject: [PATCH] vk/image: Add a stub for the new ImageFormatProperties function This lets the client query about things like multisample. We don't do multisample right now, so I'll let Chad deal with that when he gets to it. --- include/vulkan/vulkan.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/include/vulkan/vulkan.h b/include/vulkan/vulkan.h index b5526286112..c5e4a8a3df0 100644 --- a/include/vulkan/vulkan.h +++ b/include/vulkan/vulkan.h @@ -1159,6 +1159,11 @@ typedef struct { VkFormatFeatureFlags optimalTilingFeatures; } VkFormatProperties; +typedef struct { + uint64_t maxResourceSize; + uint32_t maxSamples; +} VkImageFormatProperties; + typedef struct { uint32_t maxImageDimension1D; uint32_t maxImageDimension2D; @@ -2000,6 +2005,7 @@ typedef VkResult (VKAPI *PFN_vkDestroyInstance)(VkInstance instance); typedef VkResult (VKAPI *PFN_vkEnumeratePhysicalDevices)(VkInstance instance, uint32_t* pPhysicalDeviceCount, VkPhysicalDevice* pPhysicalDevices); typedef VkResult (VKAPI *PFN_vkGetPhysicalDeviceFeatures)(VkPhysicalDevice physicalDevice, VkPhysicalDeviceFeatures* pFeatures); typedef VkResult (VKAPI *PFN_vkGetPhysicalDeviceFormatProperties)(VkPhysicalDevice physicalDevice, VkFormat format, VkFormatProperties* pFormatProperties); +typedef VkResult (VKAPI *PFN_vkGetPhysicalDeviceImageFormatProperties)(VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type, VkImageTiling tiling, VkImageUsageFlags usage, VkImageFormatProperties* pImageFormatProperties); typedef VkResult (VKAPI *PFN_vkGetPhysicalDeviceLimits)(VkPhysicalDevice physicalDevice, VkPhysicalDeviceLimits* pLimits); typedef VkResult (VKAPI *PFN_vkGetPhysicalDeviceProperties)(VkPhysicalDevice physicalDevice, VkPhysicalDeviceProperties* pProperties); typedef VkResult (VKAPI *PFN_vkGetPhysicalDeviceQueueCount)(VkPhysicalDevice physicalDevice, uint32_t* pCount); @@ -2162,6 +2168,14 @@ VkResult VKAPI vkGetPhysicalDeviceFormatProperties( VkFormat format, VkFormatProperties* pFormatProperties); +VkResult VKAPI vkGetPhysicalDeviceImageFormatProperties( + VkPhysicalDevice physicalDevice, + VkFormat format, + VkImageType type, + VkImageTiling tiling, + VkImageUsageFlags usage, + VkImageFormatProperties* pImageFormatProperties); + VkResult VKAPI vkGetPhysicalDeviceLimits( VkPhysicalDevice physicalDevice, VkPhysicalDeviceLimits* pLimits); -- 2.30.2