vOOlkan
An object oriented approach to Vulkan
|
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... | |
A Queue is an abstraction over the VkQueue Vulkan object. A Queue is where commands from the CPU to the GPU are sent.
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.
virtualGpu | The LogicalDevice to extract the Queue from. |
queueFamilyIndex | The Family of the Queue to extract |
Vulkan::QueueFamily Vulkan::Queue::getFamily | ( | ) | const |
Returns the family of the queue.
int Vulkan::Queue::getFamilyIndex | ( | ) | const |
Returns the physical GPU queue family index for this queue.
const VkQueue & Vulkan::Queue::operator+ | ( | ) | const |
Returns the underlying VkQueue object.