Vulkan: Implement SetStencilReference

This commit is contained in:
Corentin Wallez 2018-02-05 14:23:42 -05:00 committed by Corentin Wallez
parent 08b3cbf5bf
commit 53604a11a5
1 changed files with 6 additions and 0 deletions

View File

@ -269,6 +269,12 @@ namespace backend { namespace vulkan {
lastRenderPipeline = pipeline;
} break;
case Command::SetStencilReference: {
SetStencilReferenceCmd* cmd = mCommands.NextCommand<SetStencilReferenceCmd>();
device->fn.CmdSetStencilReference(commands, VK_STENCIL_FRONT_AND_BACK,
cmd->reference);
} break;
case Command::SetVertexBuffers: {
SetVertexBuffersCmd* cmd = mCommands.NextCommand<SetVertexBuffersCmd>();
auto buffers = mCommands.NextData<Ref<BufferBase>>(cmd->count);