Merge pull request #5038 from aws-lumberyard-dev/Atom/jiaweig/ATOM-16414_vulkan_stencil

ATOM-16414 Vulkan stencil reference bits are used incorrectly
This commit is contained in:
Jeremy Ong
2021-10-27 15:49:56 -06:00
committed by GitHub
@@ -729,8 +729,7 @@ namespace AZ
void CommandList::SetStencilRef(uint8_t stencilRef)
{
vkCmdSetStencilReference(m_nativeCommandBuffer, VK_STENCIL_FACE_FRONT_BIT, static_cast<uint32_t>(stencilRef));
vkCmdSetStencilReference(m_nativeCommandBuffer, VK_STENCIL_FACE_BACK_BIT, static_cast<uint32_t>(stencilRef));
vkCmdSetStencilReference(m_nativeCommandBuffer, VK_STENCIL_FACE_FRONT_AND_BACK, aznumeric_cast<uint32_t>(stencilRef));
}
void CommandList::BindPipeline(const PipelineState* pipelineState)