MCPcopy Create free account
hub / github.com/NazaraEngine/NazaraEngine / SetPass

Method SetPass

src/Nazara/Graphics/DeferredRenderTechnique.cpp:510–522  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

508 */
509
510 void DeferredRenderTechnique::SetPass(RenderPassType relativeTo, int position, DeferredRenderPass* pass)
511 {
512 if (pass)
513 {
514 pass->Initialize(this);
515 if (m_GBufferSize != Vector2ui(0U))
516 pass->Resize(m_GBufferSize);
517
518 m_passes[relativeTo][position].reset(pass);
519 }
520 else
521 m_passes[relativeTo].erase(position);
522 }
523
524 /*!
525 * \brief Checks whether the technique is supported

Callers

nothing calls this directly

Calls 2

InitializeMethod · 0.45
ResizeMethod · 0.45

Tested by

no test coverage detected