Skip to content

LiteFX::Rendering::Backends::DirectX12Device::defaultQueue

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

Synopsis

Declared in <litefx/backends/dx12.hpp>

[[dllimport, dllexport]] virtual DirectX12Queue const& defaultQueue(QueueType type) const override;

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.

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