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

Method Sync

Hydrogent/src/Tasks/HnProcessSelectionTask.cpp:62–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62void HnProcessSelectionTask::Sync(pxr::HdSceneDelegate* Delegate,
63 pxr::HdTaskContext* TaskCtx,
64 pxr::HdDirtyBits* DirtyBits)
65{
66 if (*DirtyBits & pxr::HdChangeTracker::DirtyParams)
67 {
68 HnProcessSelectionTaskParams Params;
69 if (GetTaskParams(Delegate, Params))
70 {
71 m_NumJFIterations = static_cast<Uint32>(std::ceil(std::log2(std::max(Params.MaximumDistance, 1.f)))) + 1;
72
73 (*TaskCtx)[HnRenderResourceTokens->suspendSuperSampling] = pxr::VtValue{true};
74 }
75 }
76
77 *DirtyBits = pxr::HdChangeTracker::Clean;
78}
79
80void HnProcessSelectionTask::PrepareTechniques(TEXTURE_FORMAT RTVFormat)
81{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected