Lugdunum  0.1.0
QueueFamily.inl
Go to the documentation of this file.
1 inline uint32_t QueueFamily::getIdx() const {
2  return _idx;
3 }
4 
5 inline VkQueueFlags QueueFamily::getFlags() const {
6  return _flags;
7 }
8 
9 inline const std::vector<Queue>& QueueFamily::getQueues() const {
10  return _queues;
11 }
12 
13 inline const Queue* QueueFamily::getQueue(const std::string& queueName) const {
14  auto queue = _queuesIndices.find(queueName);
15  if (queue == _queuesIndices.end()) {
16  return nullptr;
17  }
18  return &_queues[queue->second];
19 }
20 
21 inline bool QueueFamily::supportsPresentation() const {
22  return _presentation;
23 }
24 
25 inline void QueueFamily::supportsPresentation(bool presentation) {
26  _presentation = presentation;
27 }