Add missing Optick GPU events for Render HiZ and Resolve Screen for SSR

This commit is contained in:
SRSaunders 2025-01-22 19:34:39 -05:00
parent 2bef9f0c8a
commit f2036c4d01

View file

@ -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" );