Skip to content

LiteFX::Rendering::IFrameBuffer::addImage

Adds an image for a render target to the frame buffer.

Synopsis

Declared in <litefx/rendering_api.hpp>

[[dllimport, dllexport]] virtual void addImage(
    String const& name,
    RenderTarget const& renderTarget,
    MultiSamplingLevel samples = MultiSamplingLevel::x1,
    ResourceUsage usage = ResourceUsage::FrameBufferImage) = 0;

Parameters

NameDescription
nameThe name of the image.
renderTargetThe render target for which to add an image.
samplesThe number of samples of the image.
usageThe desired resource usage flags for the image.