Skip to content

LiteFX::Rendering::IFrameBuffer::addImage

Adds an image to the frame buffer.

Synopsis

Declared in <litefx/rendering_api.hpp>

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

Exceptions

NameThrown on
InvalidArgumentExceptionThrown, if another image with the same name as provided in name has already been added to the frame buffer.

Parameters

NameDescription
nameThe name of the image.
formatThe format of the image.
samplesThe number of samples of the image.
usageThe desired resource usage flags for the image.