MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ get_present_queue()

vk::Queue MayaFlux::Core::VKDevice::get_present_queue ( uint32_t  family_index) const

Queue for a presentation-capable family.

Parameters
family_indexFamily index, must be set in present_family_mask
Returns
Queue handle, or null if the family has no presentation support

A queue is created for every family in the mask, not only the one the engine's default present path uses, so a caller driving its own presentation has a queue available without recreating the device.

Definition at line 582 of file VKDevice.cpp.

583{
584 auto it = m_present_queues.find(family_index);
585 return it != m_present_queues.end() ? it->second : nullptr;
586}
std::unordered_map< uint32_t, vk::Queue > m_present_queues
One queue per presentation-capable family.
Definition VKDevice.hpp:206

References m_present_queues.

Referenced by get_preferred_present_queue().

+ Here is the caller graph for this function: