Skip to content

LiteFX::Rendering::RenderPassBuilder::renderTarget

Adds a render target to the render pass by assigning it an incremental location number.

Synopsis

Declared in <litefx/rendering_builders.hpp>

template<typename TSelf>
constexpr TSelf&& renderTarget(this 
    TSelf&& self,
    RenderTargetType type,
    Format format,
    RenderTargetFlags flags = RenderTargetFlags::None,
    Vector4f const& clearValues = { 0.0f, 0.0f, 0.0f, 0.0f });

Parameters

NameDescription
typeThe type of the render target.
formatThe color format of the render target.
flagsThe flags that control the behavior of the render target.
clearValuesThe fixed clear value for the render target.