Browse Source

Prefer 24 bit depth components

Signed-off-by: Squareys <Squareys@googlemail.com>
pull/202/head
Squareys 10 years ago
parent
commit
0f5d920485
  1. 2
      src/Magnum/Vk/PhysicalDevice.cpp

2
src/Magnum/Vk/PhysicalDevice.cpp

@ -41,9 +41,9 @@ VkFormat PhysicalDevice::getSupportedDepthFormat() {
// Since all depth formats may be optional, we need to find a suitable depth format to use
// Start with the highest precision packed format
std::vector<VkFormat> depthFormats = {
VK_FORMAT_D24_UNORM_S8_UINT,
VK_FORMAT_D32_SFLOAT_S8_UINT,
VK_FORMAT_D32_SFLOAT,
VK_FORMAT_D24_UNORM_S8_UINT,
VK_FORMAT_D16_UNORM_S8_UINT,
VK_FORMAT_D16_UNORM
};

Loading…
Cancel
Save