Merge branch 'main' into Atom/moudgils/FixTextureArray

This commit is contained in:
moudgils
2021-05-13 14:03:54 -07:00
2135 changed files with 52031 additions and 196677 deletions
@@ -41,7 +41,11 @@ namespace AZ
const RHI::ShaderResourceGroupLayout* ShaderResourceGroupAsset::GetLayout() const
{
AZ_Assert(m_currentAPITypeIndex < m_perAPILayout.size(), "Invalid API Type index");
AZ_Error("RHI::ShaderResourceGroupLayout", m_currentAPITypeIndex < m_perAPILayout.size(), "Invalid API Type index");
if (m_currentAPITypeIndex >= m_perAPILayout.size())
{
return nullptr;
}
return m_perAPILayout[m_currentAPITypeIndex].second.get();
}