[ATOM-15561] Adding AZ_Error for unhandled pass binding failure case.

This commit is contained in:
pruiksma
2021-05-18 14:01:18 -05:00
parent 39de8631f2
commit dff3efbfca
@@ -163,6 +163,11 @@ namespace AZ
binding.m_shaderInputIndex = idx.IsValid() ? static_cast<int16_t>(idx.GetIndex()) : PassAttachmentBinding::ShaderInputNoBind;
}
}
else
{
AZ_Error("Pass System", false, "[Pass %s] Could not bind shader buffer index '%s' because it has no attachment.", GetName().GetCStr(), shaderName.GetCStr());
binding.m_shaderInputIndex = PassAttachmentBinding::ShaderInputNoBind;
}
}
}