Added function for getting best-fit depth format to device

Refs #607
This commit is contained in:
Sascha Willems 2019-12-01 18:13:22 +01:00
parent 92dcc1d23a
commit 99fa99ff37
2 changed files with 32 additions and 2 deletions

View file

@ -262,8 +262,7 @@ public:
*/
void prepareDepthPass()
{
VkFormat depthFormat;
vks::tools::getSupportedDepthFormat(physicalDevice, &depthFormat);
VkFormat depthFormat = vulkanDevice->getSupportedDepthFormat(true);
/*
Depth map renderpass