diff options
| author | Ameer J <52414509+ameerj@users.noreply.github.com> | 2021-10-23 18:02:23 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-23 18:02:23 -0400 |
| commit | 494e34af6a247ebe18baaa237d6aab547feb3fba (patch) | |
| tree | 60c61302d9ffc00b398ce6fbb53b7b74bbe17d51 /src/video_core/vulkan_common/vulkan_device.cpp | |
| parent | 2686bf67343289fd389fc0d6443699ec3385532b (diff) | |
| parent | ad8afaf1ef0c2f6c9ecb4e3670d4a3e4192ab0a9 (diff) | |
Merge pull request #7070 from FernandoS27/want-you-bad
Vulkan Rasterizer: Correct DepthBias/PolygonOffset on Vulkan.
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 6388ed2eb..0f807990c 100644 --- a/src/video_core/vulkan_common/vulkan_device.cpp +++ b/src/video_core/vulkan_common/vulkan_device.cpp @@ -623,6 +623,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); } |
