Skip to content

LiteFX::Rendering::RenderTarget::RenderTarget

Initializes the render target.

Synopsis

Declared in <litefx/rendering_api.hpp>

[[dllimport, dllexport]] explicit RenderTarget(
    StringView name,
    UInt32 location,
    RenderTargetType type,
    Format format,
    RenderTargetFlags flags = RenderTargetFlags::None,
    Vector4f const& clearValues = { 0.f , 0.f, 0.f, 0.f },
    BlendState const& blendState = {});

Description

This overload uses the name parameter to compute the identifier.

Parameters

NameDescription
nameThe unique name of the render target.
locationThe location of the render target output attachment.
typeThe type of the render target.
formatThe format of the render target.
flagsThe flags that control the behavior of the render target.
clearValuesThe values with which the render target gets cleared.
blendStateThe render target blend state.