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

Method SetupView

src/render/ForwardShadingPass.cpp:330–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328}
329
330void ForwardShadingPass::SetupView(
331 GeometryPassContext& abstractContext,
332 nvrhi::ICommandList* commandList,
333 const IView* view,
334 const IView* viewPrev)
335{
336 auto& context = static_cast<Context&>(abstractContext);
337
338 ForwardShadingViewConstants viewConstants = {};
339 view->FillPlanarViewConstants(viewConstants.view);
340 commandList->writeBuffer(m_ForwardViewCB, &viewConstants, sizeof(viewConstants));
341
342 context.keyTemplate.frontCounterClockwise = view->IsMirrored();
343 context.keyTemplate.reverseDepth = view->IsReverseDepth();
344 context.keyTemplate.shadingRateState = view->GetVariableRateShadingState();
345}
346
347void ForwardShadingPass::PrepareLights(
348 Context& context,

Callers

nothing calls this directly

Calls 4

IsMirroredMethod · 0.45
IsReverseDepthMethod · 0.45

Tested by

no test coverage detected