Skip to content

LiteFX::Rendering::Backends::VulkanRenderPassBuilder::renderTarget

renderTarget overloads

Synopses

Declared in <litefx/rendering_builders.hpp>

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

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 });

» more...

Adds a render target to the render pass.

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

» more...

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

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

» more...

Adds a render target to the render pass.

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 });

» more...

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.
locationThe location of the render target.
nameThe name of the render target.