diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2023-08-28 00:54:39 +0200 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2023-09-16 17:58:55 +0200 |
commit | 6a1ecab2dde1db7d3183d9c98eda393341cca50b (patch) | |
tree | cf82bb3aa122ba7e0d73094157bf134b430f2bad /src/video_core/vulkan_common/vulkan_wrapper.h | |
parent | Merge pull request #11519 from german77/system-policy (diff) | |
download | yuzu-6a1ecab2dde1db7d3183d9c98eda393341cca50b.tar yuzu-6a1ecab2dde1db7d3183d9c98eda393341cca50b.tar.gz yuzu-6a1ecab2dde1db7d3183d9c98eda393341cca50b.tar.bz2 yuzu-6a1ecab2dde1db7d3183d9c98eda393341cca50b.tar.lz yuzu-6a1ecab2dde1db7d3183d9c98eda393341cca50b.tar.xz yuzu-6a1ecab2dde1db7d3183d9c98eda393341cca50b.tar.zst yuzu-6a1ecab2dde1db7d3183d9c98eda393341cca50b.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/vulkan_common/vulkan_wrapper.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/video_core/vulkan_common/vulkan_wrapper.h b/src/video_core/vulkan_common/vulkan_wrapper.h index 049fa8038..679c2ffa8 100644 --- a/src/video_core/vulkan_common/vulkan_wrapper.h +++ b/src/video_core/vulkan_common/vulkan_wrapper.h @@ -222,6 +222,7 @@ struct DeviceDispatch : InstanceDispatch { PFN_vkCmdSetBlendConstants vkCmdSetBlendConstants{}; PFN_vkCmdSetCullModeEXT vkCmdSetCullModeEXT{}; PFN_vkCmdSetDepthBias vkCmdSetDepthBias{}; + PFN_vkCmdSetDepthBias2EXT vkCmdSetDepthBias2EXT{}; PFN_vkCmdSetDepthBounds vkCmdSetDepthBounds{}; PFN_vkCmdSetDepthBoundsTestEnableEXT vkCmdSetDepthBoundsTestEnableEXT{}; PFN_vkCmdSetDepthCompareOpEXT vkCmdSetDepthCompareOpEXT{}; @@ -1315,6 +1316,18 @@ public: dld->vkCmdSetDepthBias(handle, constant_factor, clamp, slope_factor); } + void SetDepthBias(float constant_factor, float clamp, float slope_factor, + VkDepthBiasRepresentationInfoEXT* extra) const noexcept { + VkDepthBiasInfoEXT info{ + .sType = VK_STRUCTURE_TYPE_DEPTH_BIAS_INFO_EXT, + .pNext = extra, + .depthBiasConstantFactor = constant_factor, + .depthBiasClamp = clamp, + .depthBiasSlopeFactor = slope_factor, + }; + dld->vkCmdSetDepthBias2EXT(handle, &info); + } + void SetDepthBounds(float min_depth_bounds, float max_depth_bounds) const noexcept { dld->vkCmdSetDepthBounds(handle, min_depth_bounds, max_depth_bounds); } |