diff options
| author | liamwhite <liamwhite@users.noreply.github.com> | 2023-09-28 09:35:37 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-28 09:35:37 -0400 |
| commit | 7bae22a3ca55e2e4ed985fed1cf2abe848de60c2 (patch) | |
| tree | efa6396c6c43d84f046343efd41a0204244e0f53 /src/video_core/vulkan_common/vulkan_device.cpp | |
| parent | f24d956ae2cb54bb1445db9f02691b5d0e08ccb4 (diff) | |
| parent | b99f94a7ffab0698f209bf1b39d337940bc40e50 (diff) | |
Merge pull request #11402 from FernandoS27/depth-bias-control
Vulkan: Implement Depth Bias Control
Diffstat (limited to 'src/video_core/vulkan_common/vulkan_device.cpp')
| -rw-r--r-- | src/video_core/vulkan_common/vulkan_device.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/video_core/vulkan_common/vulkan_device.cpp b/src/video_core/vulkan_common/vulkan_device.cpp index 18185610f..3960b135a 100644 --- a/src/video_core/vulkan_common/vulkan_device.cpp +++ b/src/video_core/vulkan_common/vulkan_device.cpp @@ -1059,6 +1059,13 @@ void Device::RemoveUnsuitableExtensions() { RemoveExtensionFeatureIfUnsuitable(extensions.custom_border_color, features.custom_border_color, VK_EXT_CUSTOM_BORDER_COLOR_EXTENSION_NAME); + // VK_EXT_depth_bias_control + extensions.depth_bias_control = + features.depth_bias_control.depthBiasControl && + features.depth_bias_control.leastRepresentableValueForceUnormRepresentation; + RemoveExtensionFeatureIfUnsuitable(extensions.depth_bias_control, features.depth_bias_control, + VK_EXT_DEPTH_BIAS_CONTROL_EXTENSION_NAME); + // VK_EXT_depth_clip_control extensions.depth_clip_control = features.depth_clip_control.depthClipControl; RemoveExtensionFeatureIfUnsuitable(extensions.depth_clip_control, features.depth_clip_control, |
