From ab198bcd617e823be3731b6de357cbdda71f6802 Mon Sep 17 00:00:00 2001 From: Tony Wasserka Date: Tue, 22 Oct 2024 22:02:09 +0200 Subject: [PATCH] Vulkan: Implement StencilTest::CompareFunc::GreaterThan --- source/video_core/src/video_core/vulkan/state_mapping.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/video_core/src/video_core/vulkan/state_mapping.hpp b/source/video_core/src/video_core/vulkan/state_mapping.hpp index 9f8924b..6cc037d 100644 --- a/source/video_core/src/video_core/vulkan/state_mapping.hpp +++ b/source/video_core/src/video_core/vulkan/state_mapping.hpp @@ -201,6 +201,9 @@ inline vk::CompareOp FromPicaState(StencilTest::CompareFunc compare_func) { case Func::LessThan: return vk::CompareOp::eLess; + case Func::GreaterThan: + return vk::CompareOp::eGreater; + default: throw std::runtime_error(fmt::format("Unknown stencil compare func {:#x}", static_cast(compare_func))); }