![]() |
LiteFX 0.3.1.2022
Computer Graphics Engine
|
Represents a command queue. More...
#include <rendering.hpp>
Inherits LiteFX::Rendering::ICommandQueue.
Public Types | |
using | command_buffer_type = TCommandBuffer |
Public Member Functions | |
virtual | ~CommandQueue () noexcept=default |
virtual UniquePtr< command_buffer_type > | createCommandBuffer (const bool &beginRecording=false) const =0 |
virtual UInt64 | submit (const command_buffer_type &commandBuffer) const =0 |
virtual UInt64 | submit (const Array< const command_buffer_type * > &commandBuffers) const =0 |
![]() | |
virtual | ~ICommandQueue () noexcept=default |
virtual bool | isBound () const noexcept=0 |
Returns true , if the command queue is bound on the parent device. More... | |
virtual const QueuePriority & | priority () const noexcept=0 |
Returns the priority of the queue. More... | |
virtual const QueueType & | type () const noexcept=0 |
Returns the type of the queue. More... | |
virtual void | bind ()=0 |
Binds the queue on the parent device. More... | |
virtual void | release ()=0 |
Releases the queue from the parent device. More... | |
UniquePtr< ICommandBuffer > | createCommandBuffer (const bool &beginRecording=false) const |
Creates a command buffer that can be used to allocate commands on the queue. More... | |
UInt64 | submit (const ICommandBuffer &commandBuffer) const |
Submits a single command buffer and inserts a fence to wait for it. More... | |
UInt64 | submit (const Array< const ICommandBuffer * > &commandBuffers) const |
Submits a set of command buffers and inserts a fence to wait for them. More... | |
virtual void | waitFor (const UInt64 &fence) const noexcept=0 |
Waits for a certain fence value to complete on the command queue. More... | |
virtual UInt64 | currentFence () const noexcept=0 |
Returns the value of the latest fence inserted into the queue. More... | |
Represents a command queue.
TCommandBuffer | The type of the command buffer for this queue. Must implement CommandBuffer. |
using LiteFX::Rendering::CommandQueue< TCommandBuffer >::command_buffer_type = TCommandBuffer |
|
virtualdefaultnoexcept |
|
pure virtual |
Implemented in LiteFX::Rendering::Backends::DirectX12Queue, and LiteFX::Rendering::Backends::VulkanQueue.
|
pure virtual |
|
pure virtual |