mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-03-13 22:22:05 +00:00
Add missing Optick GPU events for Render HiZ and Resolve Screen for SSR
This commit is contained in:
parent
2bef9f0c8a
commit
f2036c4d01
1 changed files with 4 additions and 1 deletions
|
@ -5738,6 +5738,7 @@ void idRenderBackend::DrawViewInternal( const viewDef_t* _viewDef, const int ste
|
|||
//-------------------------------------------------
|
||||
if( R_UseHiZ() && is3D )
|
||||
{
|
||||
OPTICK_GPU_EVENT( "Render_HiZ" );
|
||||
renderLog.OpenBlock( "Render_HiZ" );
|
||||
|
||||
commandList->clearTextureFloat( globalImages->hierarchicalZbufferImage->GetTextureHandle(), nvrhi::AllSubresources, nvrhi::Color( 1.f ) );
|
||||
|
@ -5802,8 +5803,10 @@ void idRenderBackend::DrawViewInternal( const viewDef_t* _viewDef, const int ste
|
|||
//-------------------------------------------------
|
||||
// resolve the screen for SSR
|
||||
//-------------------------------------------------
|
||||
if( is3D && r_useSSR.GetBool() )
|
||||
if( is3D && r_useSSR.GetBool() && R_UseHiZ() )
|
||||
{
|
||||
OPTICK_GPU_EVENT( "Resolve_Screen4SSR" );
|
||||
|
||||
if( R_GetMSAASamples() > 1 )
|
||||
{
|
||||
renderLog.OpenBlock( "Resolve to _currentRender" );
|
||||
|
|
Loading…
Reference in a new issue