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
@@ -38,32 +38,7 @@ namespace AZ
SubsurfaceScatteringPass::SubsurfaceScatteringPass(const PassDescriptor& descriptor)
: ComputePass(descriptor)
{
bool succeed = false;
succeed = FindShaderInputConstantIndexByName(m_screenSizeInputIndex, Name{ "m_screenSize" });
if (!succeed)
{
AZ_Error("PassSystem", false, "[SubsurfaceScatteringPass '%s']: Initialization failed");
}
}
bool SubsurfaceScatteringPass::FindShaderInputConstantIndexByName(AZ::RHI::ShaderInputConstantIndex& index, AZ::Name name)
{
index = m_shaderResourceGroup->FindShaderInputConstantIndex(name);
if (index.IsValid())
{
return true;
}
else
{
AZ_Error("PassSystem", false, "[SubsurfaceScatteringPass '%s']: Failed to find shader input constant %s in per pass srg of compute shader.",
name.GetCStr());
return false;
}
}
{ }
void SubsurfaceScatteringPass::FrameBeginInternal(FramePrepareParams params)
{