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>

template<typename TSelf>
TSelf&& addImage(this 
    TSelf&& self,
    RenderTarget const& renderTarget,
    MultiSamplingLevel samples = MultiSamplingLevel::x1,
    ResourceUsage usage = ResourceUsage::FrameBufferImage);

Parameters

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