|
CeresEngine 0.2.0
A game development framework
|
An object that encapsulates rendering context for a view. More...
#include <CeresEngine/Graphics/GraphicsCommandBuffer.hpp>
Public Member Functions | |
| template<typename Allocator > | |
| GraphicsCommandBuffer (std::allocator_arg_t, const Allocator &allocator) | |
| GraphicsCommandBuffer (AnyAllocatorReference allocator) | |
| GraphicsCommandBuffer () noexcept=default | |
Creates a new GraphicsCommandBuffer instance. | |
| template<typename T > | |
| T & | pushCommand (const GraphicsState &graphicsState) |
| Pushes a new command to the command list. | |
| template<typename T > | |
| T & | tryReuseCommand (const GraphicsState &graphicsState) |
| Tries to get a command from the command list. | |
Public Attributes | |
| Deque< GraphicsCommand, AnyAllocatorReference > | commands |
An object that encapsulates rendering context for a view.
|
inlineexplicit |
|
inlineexplicit |
|
explicitdefaultnoexcept |
Creates a new GraphicsCommandBuffer instance.
|
inline |
Pushes a new command to the command list.
| T | The type of the command to be added. |
| graphicsState | The graphics state to create the command with. |
|
inline |
Tries to get a command from the command list.
If the last command doesn't match the given type T or the given graphicsState a new command is pushed and returned.
| T | The type of the command to be added or retrieved. |
| graphicsState | The graphics state to create the command with. |
| Deque<GraphicsCommand, AnyAllocatorReference> CeresEngine::GraphicsCommandBuffer::commands |