SpiecsEngine
 
Loading...
Searching...
No Matches

◆ FindDepthFormat()

VkFormat Spices::VulkanSwapChain::FindDepthFormat ( const VkPhysicalDevice & physicalDevice)
static

Check whether Depth Image's Format is supported by physical device.

Parameters
[in]physicalDeviceVkPhysicalDevice.
Returns
Returns the Depth Image's Format

Call findSupportedFormat with specific parameters.

Call findSupportedFormat with specific parameters.

Definition at line 47 of file VulkanSwapChain.cpp.

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.