A queue of rendering commands. More...
Public Member Functions | |
| RenderCommandQueue () noexcept | |
| RenderCommandQueue (nkMemory::BufferCast< RenderCommand > commands) noexcept | |
| RenderCommandQueue (nkMemory::BufferView< RenderCommand > commandsView) noexcept | |
| nkMemory::BufferView< RenderCommand > | getCommands () const |
| void | addCommand (const RenderCommand &command) |
| void | reset () |
A queue of rendering commands.
|
noexcept |
Default constructor.
|
noexcept |
Command buffer move constructor. The BufferCast provided will be moved over and used within the queue.
| commands | The commands to move over. |
|
noexcept |
Command buffer view constructor. The BufferView provided will be referenced as-is, without any new memory allocation.
| commandsView | The command buffer to reference. |
| nkMemory::BufferView<RenderCommand> nkGraphics::RenderCommandQueue::getCommands | ( | ) | const |
| void nkGraphics::RenderCommandQueue::addCommand | ( | const RenderCommand & | command | ) |
Allows to add a new command to the buffer.
| command | The command to add. |
| void nkGraphics::RenderCommandQueue::reset | ( | ) |
Resets the queue to make it ready to start over.