Function TRAP::Graphics::RenderCommand::BindRenderTargets#

Function Documentation#

void TRAP::Graphics::RenderCommand::BindRenderTargets(const std::vector<std::reference_wrapper<const Graphics::RenderTarget>> &colorTargets, const Graphics::RenderTarget *depthStencil, RendererAPI::LoadActionsDesc *loadActions = nullptr, const Window &window = *TRAP::Application::GetWindow())#

Set multiple render targets for the given window.

Remark

Headless mode: This function is not available in headless mode.

Parameters:
  • colorTargets – Color targets to set.

  • depthStencil – Depth stencil target to set.

  • loadActions – Load actions.

  • windowWindow to set render target for. Default: Main Window.