From b814cb503ab516161833ae5eb2ea9bf0cc12fc78 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Fri, 25 May 2018 17:41:35 -1000 Subject: [PATCH] Add GEqual depth testing to Vulkan backend --- lib/graphicsdev/Vulkan.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/graphicsdev/Vulkan.cpp b/lib/graphicsdev/Vulkan.cpp index 6910512..a742acf 100644 --- a/lib/graphicsdev/Vulkan.cpp +++ b/lib/graphicsdev/Vulkan.cpp @@ -2264,6 +2264,9 @@ public: case ZTest::Equal: depthStencilInfo.depthCompareOp = VK_COMPARE_OP_EQUAL; break; + case ZTest::GEqual: + depthStencilInfo.depthCompareOp = VK_COMPARE_OP_GREATER_OR_EQUAL; + break; } VkPipelineColorBlendAttachmentState colorAttachment = {};