diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-09-23 03:14:10 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-09-23 03:49:10 +0200 |
commit | 60a39805615fb0480eb57416f5e9ec17e7c91ce4 (patch) | |
tree | 8f49ff1df003f24de667163d70132def81b665cb /src/video_core/vulkan_common/vulkan_device.cpp | |
parent | Merge pull request #7003 from ameerj/unlocked-present-mode (diff) | |
download | yuzu-60a39805615fb0480eb57416f5e9ec17e7c91ce4.tar yuzu-60a39805615fb0480eb57416f5e9ec17e7c91ce4.tar.gz yuzu-60a39805615fb0480eb57416f5e9ec17e7c91ce4.tar.bz2 yuzu-60a39805615fb0480eb57416f5e9ec17e7c91ce4.tar.lz yuzu-60a39805615fb0480eb57416f5e9ec17e7c91ce4.tar.xz yuzu-60a39805615fb0480eb57416f5e9ec17e7c91ce4.tar.zst yuzu-60a39805615fb0480eb57416f5e9ec17e7c91ce4.zip |
Diffstat (limited to 'src/video_core/vulkan_common/vulkan_device.cpp')
-rw-r--r-- | src/video_core/vulkan_common/vulkan_device.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/vulkan_common/vulkan_device.cpp b/src/video_core/vulkan_common/vulkan_device.cpp index c2ec9f76a..3a048900b 100644 --- a/src/video_core/vulkan_common/vulkan_device.cpp +++ b/src/video_core/vulkan_common/vulkan_device.cpp @@ -618,6 +618,10 @@ Device::Device(VkInstance instance_, vk::PhysicalDevice physical_, VkSurfaceKHR is_float16_supported = false; } + supports_d24_depth = + IsFormatSupported(VK_FORMAT_D24_UNORM_S8_UINT, + VK_FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT, FormatType::Optimal); + graphics_queue = logical.GetQueue(graphics_family); present_queue = logical.GetQueue(present_family); } |