Skip to content

LiteFX::Rendering::IGraphicsDevice::defaultQueue

Returns the instance of the default ICommandQueue that supports the combination of queue types specified by the type parameter.

Synopsis

Declared in <litefx/rendering_api.hpp>

[[dllimport, dllexport]] ICommandQueue const& defaultQueue(QueueType type) const;

Description

When the device is created, it attempts to create a queue for each singular queue type. Each GPU is expected to provide at least one queue that is capable of supporting all queue types. This queue is used as a fallback queue, if no dedicated queue for a certain type is supported. For example, if no dedicated QueueType::Transfer queue can be created, calling this method for the default transfer queue will return the same queue instance as the default graphics queue, which implicitly always supports transfer operations. The same is true for compute queues. This default graphics queue is ensured to support presentation and is also created with the highest queue priority.

Exceptions

NameThrown on
InvalidArgumentExceptionThrown, if no default queue for the combination of queue types specified with the type parameter has been created.

Return Value

The instance of the queue, used to process draw calls.

Parameters

NameDescription
typeThe type or a combination of types that specifies the operation the queue should support.

See Also

createQueue