Skip to content

LiteFX::Rendering::RenderTarget::RenderTarget

Constructors

Synopses

Declared in <litefx/rendering_api.hpp>

Creates a copy of a render target.

[[dllimport, dllexport]] RenderTarget(RenderTarget const& _other);

» more...

Takes over another instance of a render target.

[[dllimport, dllexport]] RenderTarget(RenderTarget&& _other) noexcept;

» more...

Initializes the render target.

[[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 = {});

» more...

Initializes the render target.

[[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 = {});

» more...

Parameters

NameDescription
_otherThe render target instance to copy.
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.
uidA unique identifier for the render target.