Additional Capabilities


VkResult vkGetPhysicalDeviceImageFormatProperties( VkPhysicalDevice VkFormat VkImageType VkImageTiling VkImageUsageFlags VkImageCreateFlags VkImageFormatProperties* physicalDevice, format, type, tiling, usage, flags, pImageFormatProperties);

If format is not a supported image format, or if the combination of format, type, tiling, usage, and flags is not supported for images, then vkGetPhysicalDeviceImageFormatProperties returns VK_ERROR_FORMAT_NOT_SUPPORTED.

typedef struct VkImageFormatProperties { VkExtent3D uint32_t uint32_t VkSampleCountFlags VkDeviceSize maxExtent; maxMipLevels; maxArrayLayers; sampleCounts; maxResourceSize; } VkImageFormatProperties;

VkResult vkGetPhysicalDeviceImageFormatProperties2(  VkPhysicalDevice const VkPhysicalDeviceImageFormatInfo2* VkImageFormatProperties2* physicalDevice, pImageFormatInfo, pImageFormatProperties);

typedef struct VkPhysicalDeviceImageFormatInfo2 { VkStructureType const void* VkFormat VkImageType VkImageTiling VkImageUsageFlags VkImageCreateFlags sType; pNext; format; type; tiling; usage; flags; } VkPhysicalDeviceImageFormatInfo2;

void vkGetPhysicalDeviceExternalBufferProperties( VkPhysicalDevice const VkPhysicalDeviceExternalBufferInfo* VkExternalBufferProperties* physicalDevice, pExternalBufferInfo, pExternalBufferProperties);

void vkGetPhysicalDeviceExternalSemaphoreProperties( VkPhysicalDevice physicalDevice, const VkPhysicalDeviceExternalSemaphoreInfo* pExternalSemaphoreInfo, VkExternalSemaphoreProperties* pExternalSemaphoreProperties);

void vkGetPhysicalDeviceExternalFenceProperties( VkPhysicalDevice const VkPhysicalDeviceExternalFenceInfo* VkExternalFenceProperties* physicalDevice, pExternalFenceInfo, pExternalFenceProperties);

本节教程就到此结束,希望大家继续阅读我之后的教程。

谢谢大家,再见!


原创技术文章,撰写不易,转载请注明出处:电子设备中的画家|王烁 于 2021 年 5 月 10 日发表,原文链接(http://geekfaner.com/shineengine/blog20_Vulkanv1.2_6.html)