SimpleGL  1.1.0
A framework for platform independent rendering
Public Member Functions | Static Public Member Functions | List of all members
sgl::PhysicalDevice Class Reference

This class wraps a Vulkan physical device and represents a graphics card. More...

#include <physical_device.hpp>

Public Member Functions

 ~PhysicalDevice (void)
 Destructor for the physical device. More...
 
VkPhysicalDevice getHandle ()
 Returns the handle of the physical device. More...
 
QueueFamilyIndices getQueueFamilyIndices ()
 Returns the queue family indices of the physical device. More...
 
SwapchainSupportDetails getSwapchainSupportDetails ()
 Returns the swapchain support details. More...
 
VkPhysicalDeviceProperties getProperties ()
 Returns the properties of this physical device. More...
 
VkPhysicalDeviceFeatures getFeatures ()
 Returns The features of this physical device. More...
 
std::vector< VkQueueFamilyProperties > getQueueFamilyProperties ()
 Returns the queue family properties of this physical device. More...
 

Static Public Member Functions

static std::vector< PhysicalDevice * > getAvailablePhysicalDevices (Surface *surface)
 Returns a list of available physical devices. More...
 
static PhysicalDevicegetSuitablePhysicalDevice (std::vector< PhysicalDevice * > physicalDevices)
 Returns the most suitable physical device. More...
 

Detailed Description

This class wraps a Vulkan physical device and represents a graphics card.

Definition at line 64 of file physical_device.hpp.

Constructor & Destructor Documentation

sgl::PhysicalDevice::~PhysicalDevice ( void  )

Destructor for the physical device.

Definition at line 117 of file physical_device.cpp.

Member Function Documentation

std::vector< PhysicalDevice * > sgl::PhysicalDevice::getAvailablePhysicalDevices ( Surface surface)
static

Returns a list of available physical devices.

Parameters
surfaceThe Window surface to check for a presentation queue.
Returns
A list of available physical devices.

Definition at line 29 of file physical_device.cpp.

VkPhysicalDeviceFeatures sgl::PhysicalDevice::getFeatures ( )

Returns The features of this physical device.

Returns
the features of this physical device.

Definition at line 140 of file physical_device.cpp.

VkPhysicalDevice sgl::PhysicalDevice::getHandle ( )

Returns the handle of the physical device.

Returns
The handle of the physical device.

Definition at line 121 of file physical_device.cpp.

VkPhysicalDeviceProperties sgl::PhysicalDevice::getProperties ( )

Returns the properties of this physical device.

Returns
The properties of this physical device.

Definition at line 133 of file physical_device.cpp.

QueueFamilyIndices sgl::PhysicalDevice::getQueueFamilyIndices ( )

Returns the queue family indices of the physical device.

Returns
The queue family indices of the physical device.

Definition at line 125 of file physical_device.cpp.

std::vector< VkQueueFamilyProperties > sgl::PhysicalDevice::getQueueFamilyProperties ( )

Returns the queue family properties of this physical device.

Returns
The queue family properties of this physical device.

Definition at line 147 of file physical_device.cpp.

PhysicalDevice * sgl::PhysicalDevice::getSuitablePhysicalDevice ( std::vector< PhysicalDevice * >  physicalDevices)
static

Returns the most suitable physical device.

Parameters
physicalDevicesThe list of available physical devices.
Returns
The most suitable physical device.

Definition at line 42 of file physical_device.cpp.

SwapchainSupportDetails sgl::PhysicalDevice::getSwapchainSupportDetails ( )

Returns the swapchain support details.

Returns
The swapchain support details.

Definition at line 129 of file physical_device.cpp.


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