Skip to content

LiteFX::Rendering::IFrameBuffer::addImage

Adds an image to the frame buffer.

Synopsis

Declared in <litefx/rendering_api.hpp>

template<typename TSelf>
TSelf&& addImage(this 
    TSelf&& self,
    StringView name,
    Format format,
    MultiSamplingLevel samples = MultiSamplingLevel::x1,
    ResourceUsage usage = ResourceUsage::FrameBufferImage);

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.