LiteFX::Rendering::ResourceAllocationResult::image¶
Returns the allocated image resource, or raises an exception if the allocation does not contain an image resource, or the image resource is not of TImage.
Synopsis¶
Declared in <litefx/rendering_api.hpp>
template<std::derived_from<IImage> TImage>
SharedPtr<TImage> image() const;
Exceptions¶
| Name | Thrown on |
|---|---|
RuntimeException | Thrown, if the allocated resource is not an image, or if the allocated image does not implement TImage. |
Return Value¶
The pointer to the image resource.
Template Parameters¶
| Name | Description |
|---|---|
| TImage | The type of the image. |