Diligent Engine
 
Loading...
Searching...
No Matches
Diligent::ImmediateContextCreateInfo Struct Reference

Immediate device context create info. More...

#include <GraphicsTypes.h>

Public Attributes

const Char * Name = nullptr
 Context name.
 
Uint8 QueueId = DEFAULT_QUEUE_ID
 Queue index in GraphicsAdapterInfo::Queues.
 
QUEUE_PRIORITY Priority = QUEUE_PRIORITY_MEDIUM
 Priority of the software queue created by the context, see Diligent::QUEUE_PRIORITY.
 

Detailed Description

Immediate device context create info.

Member Data Documentation

◆ Priority

QUEUE_PRIORITY Diligent::ImmediateContextCreateInfo::Priority = QUEUE_PRIORITY_MEDIUM

Priority of the software queue created by the context, see Diligent::QUEUE_PRIORITY.

  • Direct3D12 backend: each context may use a unique queue priority.
  • Vulkan backend: all contexts with the same QueueId must use the same priority.
  • Other backends: queue priority is ignored.

◆ QueueId

Uint8 Diligent::ImmediateContextCreateInfo::QueueId = DEFAULT_QUEUE_ID

Queue index in GraphicsAdapterInfo::Queues.

An immediate device context creates a software command queue for the hardware queue with id QueueId. The total number of contexts created for this queue must not exceed the value of MaxDeviceContexts member of CommandQueueInfo for this queue.