Contains the parameters for a resource allocation.
More...
#include <rendering_api.hpp>
Contains the parameters for a resource allocation.
- See also
- IGraphicsFactory, ResourceAllocationResult
◆ ResourceAllocationInfo() [1/5]
| LiteFX::Rendering::ResourceAllocationInfo::ResourceAllocationInfo |
( |
| ) |
|
|
default |
Creates a new resource allocation info instance.
◆ ResourceAllocationInfo() [2/5]
Creates a new resource allocation info instance for a buffer resource.
- Parameters
-
| bufferInfo | The details about the buffer. |
| usage | The usage flags for the buffer. |
| name | The name of the buffer resource. |
| aliasingOffset | An optional offset that is used to place the resource in a block of allocated memory when allocating overlapping resources. |
◆ ResourceAllocationInfo() [3/5]
Creates a new resource allocation info instance for an image resource.
- Parameters
-
| imageInfo | The details about the image. |
| usage | The usage flags for the image. |
| name | The name of the image resource. |
| aliasingOffset | An optional offset that is used to place the resource in a block of allocated memory when allocating overlapping resources. |
◆ ResourceAllocationInfo() [4/5]
◆ ResourceAllocationInfo() [5/5]
◆ ~ResourceAllocationInfo()
| LiteFX::Rendering::ResourceAllocationInfo::~ResourceAllocationInfo |
( |
| ) |
|
|
defaultnoexcept |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ AliasingOffset
| size_t LiteFX::Rendering::ResourceAllocationInfo::AliasingOffset { 0u } |
An optional offset that is used to place the resource in a block of allocated memory when allocating overlapping resources.
- See also
- IGraphicsFactory::allocate
◆ Name
| String LiteFX::Rendering::ResourceAllocationInfo::Name { } |
Stores the desired name of the allocated resource.
◆ ResourceInfo
Stores the buffer or image info associated with the allocation info.
◆ Usage
Stores the resource usage flags for the allocation info.