Stores the result of a resource allocation.
More...
#include <rendering_api.hpp>
Stores the result of a resource allocation.
- See also
- IGraphicsFactory, ResourceAllocationInfo
◆ ResourceAllocationResult() [1/5]
| LiteFX::Rendering::ResourceAllocationResult::ResourceAllocationResult |
( |
SharedPtr< IImage > && | image | ) |
|
|
inlinenoexcept |
Initializes an allocation result for an image resource.
- Parameters
-
| image | The allocate image resource. |
◆ ResourceAllocationResult() [2/5]
| LiteFX::Rendering::ResourceAllocationResult::ResourceAllocationResult |
( |
SharedPtr< IBuffer > && | buffer | ) |
|
|
inlinenoexcept |
Initializes an allocation result for a buffer resource.
- Parameters
-
| buffer | The allocated buffer resource. |
◆ ResourceAllocationResult() [3/5]
| LiteFX::Rendering::ResourceAllocationResult::ResourceAllocationResult |
( |
| ) |
|
|
delete |
◆ ResourceAllocationResult() [4/5]
◆ ResourceAllocationResult() [5/5]
◆ ~ResourceAllocationResult()
| LiteFX::Rendering::ResourceAllocationResult::~ResourceAllocationResult |
( |
| ) |
|
|
defaultnoexcept |
◆ buffer()
template<std::derived_from<
IBuffer > TBuffer>
| SharedPtr< TBuffer > LiteFX::Rendering::ResourceAllocationResult::buffer |
( |
| ) |
const |
|
inline |
Returns the allocated buffer resource, or raises an exception if the allocation does not contain a buffer resource, or the buffer resource is not of TBuffer .
- Template Parameters
-
| TBuffer | The type of the buffer. |
- Returns
- The pointer to the buffer resource.
- Exceptions
-
| RuntimeException | Thrown, if the allocated resource is not a buffer, or if the allocated buffer does not implement TBuffer . |
◆ image()
template<std::derived_from<
IImage > TImage>
| SharedPtr< TImage > LiteFX::Rendering::ResourceAllocationResult::image |
( |
| ) |
const |
|
inline |
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 .
- Template Parameters
-
| TImage | The type of the image. |
- Returns
- The pointer to the image resource.
- Exceptions
-
| RuntimeException | Thrown, if the allocated resource is not an image, or if the allocated image does not implement TImage . |
◆ operator=() [1/2]
◆ operator=() [2/2]