| 328 | } |
| 329 | |
| 330 | void 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 | |
| 347 | void ForwardShadingPass::PrepareLights( |
| 348 | Context& context, |
nothing calls this directly
no test coverage detected