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

Method Sync

Hydrogent/src/Tasks/HnRenderBoundBoxTask.cpp:55–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55void HnRenderBoundBoxTask::Sync(pxr::HdSceneDelegate* Delegate,
56 pxr::HdTaskContext* TaskCtx,
57 pxr::HdDirtyBits* DirtyBits)
58{
59 if (*DirtyBits & pxr::HdChangeTracker::DirtyParams)
60 {
61 if (GetTaskParams(Delegate, m_Params))
62 {
63 (*TaskCtx)[HnRenderResourceTokens->suspendSuperSampling] = pxr::VtValue{true};
64 }
65
66 if (!GetTaskParameter(Delegate, HnTokens->renderPassName, m_RenderPassName))
67 {
68 UNEXPECTED("Render pass ID is not set");
69 }
70 }
71
72 *DirtyBits = pxr::HdChangeTracker::Clean;
73}
74
75static std::string GetBoundBoxPSMain(bool IsGL)
76{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected