MCPcopy Create free account
hub / github.com/DiligentGraphics/DiligentFX / Execute

Method Execute

Hydrogent/src/Tasks/HnRenderBoundBoxTask.cpp:207–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207void HnRenderBoundBoxTask::Execute(pxr::HdTaskContext* TaskCtx)
208{
209 if (!m_BoundBoxRenderer || !m_RenderBoundBox)
210 return;
211
212 HnRenderDelegate* pRenderDelegate = static_cast<HnRenderDelegate*>(m_RenderIndex->GetRenderDelegate());
213 IDeviceContext* pContext = pRenderDelegate->GetDeviceContext();
214
215 if (HnRenderPassState* RenderPassState = GetRenderPassState(TaskCtx, m_RenderPassName))
216 {
217 RenderPassState->Commit(pContext);
218 }
219 else
220 {
221 UNEXPECTED("Render pass state is not set in the task context");
222 return;
223 }
224
225 ScopedDebugGroup DebugGroup{pContext, "Bounding Box"};
226 m_BoundBoxRenderer->Render(pContext);
227}
228
229} // namespace USD
230

Callers

nothing calls this directly

Calls 3

GetDeviceContextMethod · 0.80
CommitMethod · 0.45
RenderMethod · 0.45

Tested by

no test coverage detected