Check whether Depth Image's Format is supported by physical device.
Call findSupportedFormat with specific parameters.
Call findSupportedFormat with specific parameters.
48 {
50
55 physicalDevice,
56 { VK_FORMAT_D32_SFLOAT, VK_FORMAT_D32_SFLOAT_S8_UINT, VK_FORMAT_D24_UNORM_S8_UINT },
57 VK_IMAGE_TILING_OPTIMAL,
58 VK_FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT
59 );
60 }
#define SPICES_PROFILE_ZONE
static VkFormat findSupportedFormat(const VkPhysicalDevice &physicalDevice, const std::vector< VkFormat > &candidates, VkImageTiling tiling, VkFormatFeatureFlags features)
Check whether specific formats is supported by physical device.