vOOlkan
An object oriented approach to Vulkan
Vulkan::Queue Class Reference

A Queue is an abstraction over the VkQueue Vulkan object. A Queue is where commands from the CPU to the GPU are sent. More...

#include <Queue.h>

Public Member Functions

 Queue (const LogicalDevice &virtualGpu, std::pair< QueueFamily, int > queueFamilyIndex)
 Creates a queue by getting it from the LogicalDevice. More...
 
const VkQueue & operator+ () const
 Returns the underlying VkQueue object. More...
 
QueueFamily getFamily () const
 Returns the family of the queue. More...
 
int getFamilyIndex () const
 Returns the physical GPU queue family index for this queue. More...
 

Detailed Description

A Queue is an abstraction over the VkQueue Vulkan object. A Queue is where commands from the CPU to the GPU are sent.

Constructor & Destructor Documentation

◆ Queue()

Vulkan::Queue::Queue ( const LogicalDevice virtualGpu,
std::pair< QueueFamily, int >  queueFamilyIndex 
)

Creates a queue by getting it from the LogicalDevice.

It is always extracted the first queue of the specified family from the LogicalDevice.

Parameters
virtualGpuThe LogicalDevice to extract the Queue from.
queueFamilyIndexThe Family of the Queue to extract

Member Function Documentation

◆ getFamily()

Vulkan::QueueFamily Vulkan::Queue::getFamily ( ) const

Returns the family of the queue.

Returns
The family of the queue.

◆ getFamilyIndex()

int Vulkan::Queue::getFamilyIndex ( ) const

Returns the physical GPU queue family index for this queue.

Returns
The physical GPU queue family index for this queue.

◆ operator+()

const VkQueue & Vulkan::Queue::operator+ ( ) const

Returns the underlying VkQueue object.

Returns
The underlying VkQueue object.

The documentation for this class was generated from the following files: