Makes pipeline state dirty on Vulkan only when VertexInputLayout was changed.

This was SVN commit r28011.
This commit is contained in:
Vladislav Belov 2024-01-17 19:55:28 +00:00
parent e3f46bb809
commit aeeeb2c8d9

View File

@ -824,8 +824,11 @@ void CDeviceCommandContext::SetVertexInputLayout(
IVertexInputLayout* vertexInputLayout)
{
ENSURE(vertexInputLayout);
m_IsPipelineStateDirty = true;
m_VertexInputLayout = vertexInputLayout->As<CVertexInputLayout>();
if (m_VertexInputLayout != vertexInputLayout->As<CVertexInputLayout>())
{
m_IsPipelineStateDirty = true;
m_VertexInputLayout = vertexInputLayout->As<CVertexInputLayout>();
}
}
void CDeviceCommandContext::SetVertexBuffer(