Merge branch 'main' into Atom/moudgils/FixTextureArray
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user