Skip to content

LiteFX::Rendering::Backends::DirectX12RenderPassBuilder::renderTarget

Adds a render target to the render pass.

Synopsis

Declared in <litefx/rendering_builders.hpp>

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

Parameters

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