Integrating up through commit 90f050496

This commit is contained in:
alexpete
2021-04-07 14:03:29 -07:00
parent 8f2ed080a9
commit c2cbd430fe
2694 changed files with 285622 additions and 176874 deletions
@@ -54,16 +54,9 @@ namespace AZ
{
if (m_updateSrg)
{
RHI::ShaderInputConstantIndex constantIndex;
constantIndex = m_shaderResourceGroup->GetLayout()->FindShaderInputConstantIndex(AZ::Name("m_imageWidth"));
m_shaderResourceGroup->SetConstant(constantIndex, m_imageSize.m_width);
constantIndex = m_shaderResourceGroup->GetLayout()->FindShaderInputConstantIndex(AZ::Name("m_imageHeight"));
m_shaderResourceGroup->SetConstant(constantIndex, m_imageSize.m_height);
constantIndex = m_shaderResourceGroup->GetLayout()->FindShaderInputConstantIndex(AZ::Name("m_outputScale"));
m_shaderResourceGroup->SetConstant(constantIndex, m_outputScale);
m_shaderResourceGroup->SetConstant(m_imageWidthIndex, m_imageSize.m_width);
m_shaderResourceGroup->SetConstant(m_imageHeightIndex, m_imageSize.m_height);
m_shaderResourceGroup->SetConstant(m_outputScaleIndex, m_outputScale);
m_updateSrg = false;
}