MCPcopy Create free account
hub / github.com/NVIDIA-RTX/Donut / PrepareForView

Method PrepareForView

src/render/DrawStrategy.cpp:145–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145void donut::render::InstancedOpaqueDrawStrategy::PrepareForView(const std::shared_ptr<engine::SceneGraphNode>& rootNode, const engine::IView& view)
146{
147 m_Walker = SceneGraphWalker(rootNode.get());
148 m_ViewFrustum = view.GetViewFrustum();
149 m_InstanceChunk.clear();
150 m_ReadPtr = 0;
151}
152
153const DrawItem* InstancedOpaqueDrawStrategy::GetNextItem()
154{

Callers 1

RenderCompositeViewMethod · 0.45

Calls 15

SceneGraphWalkerClass · 0.85
lengthFunction · 0.85
getMethod · 0.80
clearMethod · 0.80
GetLeafContentFlagsMethod · 0.80
intersectsWithMethod · 0.80
centerMethod · 0.80
push_backMethod · 0.80
NextMethod · 0.80
GetViewFrustumMethod · 0.45
GetViewOriginMethod · 0.45

Tested by

no test coverage detected