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
@@ -28,25 +28,6 @@ namespace AZ
{
}
void DepthOfFieldWriteFocusDepthFromGpuPass::Init()
{
AZ_Assert(m_shaderResourceGroup != nullptr, "%s has a null shader resource group when calling Init.", GetPathName().GetCStr());
m_autoFocusScreenPositionIndex = m_shaderResourceGroup->FindShaderInputConstantIndex(Name("m_autoFocusScreenPosition"));
m_autoFocusDataBufferIndex = m_shaderResourceGroup->FindShaderInputBufferIndex(Name{"m_outputFocusDepth"});
}
void DepthOfFieldWriteFocusDepthFromGpuPass::FrameBeginInternal(FramePrepareParams params)
{
if (!m_initialized)
{
Init();
m_initialized = true;
}
ComputePass::FrameBeginInternal(params);
}
void DepthOfFieldWriteFocusDepthFromGpuPass::SetupFrameGraphDependencies(RHI::FrameGraphInterface frameGraph)
{
AZ_Assert(m_bufferRef != nullptr, "%s has a null buffer when calling Prepare.", GetPathName().GetCStr());