Integrating github/staging through commit ab87ed9

This commit is contained in:
alexpete
2021-04-09 11:27:37 -07:00
parent ae62a97894
commit 1044dc3da1
1582 changed files with 29374 additions and 519051 deletions
@@ -47,22 +47,12 @@ bool SPostEffectsUtils::Create()
{
assert(gRenDev);
#if AZ_RENDER_TO_TEXTURE_GEM_ENABLED
// disregard size changes or texture creation for render scene to texture passes
// or we will introduce texture create/delete thrashing
if (gRenDev->m_RP.m_TI[gRenDev->m_RP.m_nProcessThreadID].m_PersFlags & RBPF_RENDER_SCENE_TO_TEXTURE)
{
return false;
}
#endif // if AZ_RENDER_TO_TEXTURE_GEM_ENABLED
const SViewport& MainVp = gRenDev->m_MainViewport;
const bool bCreatePostAA = CRenderer::CV_r_AntialiasingMode && !CTexture::IsTextureExist(CTexture::s_ptexPrevBackBuffer[0][0]);
//@NOTE: CV_r_watercaustics will be removed when the infinite ocean component feature toggle is removed.
const bool bCreateCaustics = (CRenderer::CV_r_watervolumecaustics && CRenderer::CV_r_watercaustics) && !CTexture::IsTextureExist(CTexture::s_ptexWaterCaustics[0]);
static ICVar* DolbyCvar = gEnv->pConsole->GetCVar("r_HDRDolby");
int DolbyCvarValue = DolbyCvar ? DolbyCvar->GetIVal() : eDVM_Disabled;
ETEX_Format nHDRReducedFormat = gRenDev->UseHalfFloatRenderTargets() ? eTF_R11G11B10F : eTF_R10G10B10A2;