From 53604a11a58178e7d78b1169202ad1c7859414fb Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Mon, 5 Feb 2018 14:23:42 -0500 Subject: [PATCH] Vulkan: Implement SetStencilReference --- src/backend/vulkan/CommandBufferVk.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/backend/vulkan/CommandBufferVk.cpp b/src/backend/vulkan/CommandBufferVk.cpp index 4223b41326..a19a1578ce 100644 --- a/src/backend/vulkan/CommandBufferVk.cpp +++ b/src/backend/vulkan/CommandBufferVk.cpp @@ -269,6 +269,12 @@ namespace backend { namespace vulkan { lastRenderPipeline = pipeline; } break; + case Command::SetStencilReference: { + SetStencilReferenceCmd* cmd = mCommands.NextCommand(); + device->fn.CmdSetStencilReference(commands, VK_STENCIL_FRONT_AND_BACK, + cmd->reference); + } break; + case Command::SetVertexBuffers: { SetVertexBuffersCmd* cmd = mCommands.NextCommand(); auto buffers = mCommands.NextData>(cmd->count);