Skip to content

Commit

Permalink
Hydrogent: added debug groups for begin frame and begin main pass tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMostDiligent committed Nov 25, 2024
1 parent 275d7de commit 91378aa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Hydrogent/src/Tasks/HnBeginFrameTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -703,6 +703,8 @@ void HnBeginFrameTask::Execute(pxr::HdTaskContext* TaskCtx)
HnRenderDelegate* RenderDelegate = static_cast<HnRenderDelegate*>(m_RenderIndex->GetRenderDelegate());
IDeviceContext* pCtx = RenderDelegate->GetDeviceContext();

ScopedDebugGroup DebugGroup{pCtx, "Begin Frame"};

// NB: we can't move the buffer update to Prepare() because we need TAA parameters
// that are set by HnPostProcessTask::Prepare().
if (IBuffer* pFrameAttribsCB = RenderDelegate->GetFrameAttribsCB())
Expand Down
3 changes: 3 additions & 0 deletions Hydrogent/src/Tasks/HnBeginMainPassTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include "HnRenderPassState.hpp"
#include "HnShadowMapManager.hpp"
#include "HnTokens.hpp"
#include "ScopedDebugGroup.hpp"

namespace Diligent
{
Expand Down Expand Up @@ -78,6 +79,8 @@ void HnBeginMainPassTask::Execute(pxr::HdTaskContext* TaskCtx)
HnRenderDelegate* RenderDelegate = static_cast<HnRenderDelegate*>(m_RenderIndex->GetRenderDelegate());
IDeviceContext* pCtx = RenderDelegate->GetDeviceContext();

ScopedDebugGroup DebugGroup{pCtx, "Begin Main Pass"};

// Note that HnRenderShadowsTask may be disabled, so we need to transition the shadow map state here
if (const HnShadowMapManager* ShadowMapMgr = RenderDelegate->GetShadowMapManager())
{
Expand Down

0 comments on commit 91378aa

Please sign in to comment.