Skip to content

LiteFX::Rendering::RenderTarget::RenderTarget

Initializes the render target.

Synopsis

Declared in <litefx/rendering_api.hpp>

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

Parameters

NameDescription
uidA unique identifier for 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.