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

Represents the GPU (or any other device) that will be used with Vulkan to perform computer graphics. More...

#include <PhysicalDevice.h>

Public Member Functions

 PhysicalDevice (const Instance &vulkanInstance, const WindowSurface &surface)
 
const VkPhysicalDevice & operator+ () const
 Returns the underlying VkPhyisicalDevice object. More...
 
std::map< QueueFamily, int > getQueueFamiliesIndices () const
 Returns the indices of the graphics and presentation queue families (they can be the same family). More...
 
std::vector< const char * > getRequiredDeviceExtensions () const
 
VkPhysicalDeviceProperties getProperties () const
 

Detailed Description

Represents the GPU (or any other device) that will be used with Vulkan to perform computer graphics.

Constructor & Destructor Documentation

◆ PhysicalDevice()

Vulkan::PhysicalDevice::PhysicalDevice ( const Instance vulkanInstance,
const WindowSurface surface 
)

Member Function Documentation

◆ getProperties()

VkPhysicalDeviceProperties Vulkan::PhysicalDevice::getProperties ( ) const
inline

◆ getQueueFamiliesIndices()

std::map< Vulkan::QueueFamily, int > Vulkan::PhysicalDevice::getQueueFamiliesIndices ( ) const

Returns the indices of the graphics and presentation queue families (they can be the same family).

Returns
The indices of the graphics and presentation queue families.

◆ getRequiredDeviceExtensions()

std::vector< const char * > Vulkan::PhysicalDevice::getRequiredDeviceExtensions ( ) const

Returns the list of required GPU extensions.

Returns
The list of required GPU extensions.

◆ operator+()

const VkPhysicalDevice & Vulkan::PhysicalDevice::operator+ ( ) const

Returns the underlying VkPhyisicalDevice object.

Returns
The underlying VkPhyisicalDevice object.

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