Skip to content

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

NameThrown on
RuntimeExceptionThrown, 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

NameDescription
TImageThe type of the image.