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¶
| Name | Thrown on |
|---|---|
InvalidArgumentException | Thrown, if another image with the same name as provided in name has already been added to the frame buffer. |
Parameters¶
| Name | Description |
|---|---|
| name | The name of the image. |
| format | The format of the image. |
| samples | The number of samples of the image. |
| usage | The desired resource usage flags for the image. |