![]() |
FastEngine 0.9.4
A multiplayer oriented 2D engine made with Vulkan.
|
Vulkan physical device abstraction. More...
#include <C_physicalDevice.hpp>
Classes | |
| struct | QueueFamilyIndices |
| struct | SwapChainSupportDetails |
Public Member Functions | |
| PhysicalDevice (VkPhysicalDevice device=VK_NULL_HANDLE) | |
| PhysicalDevice (PhysicalDevice const &r)=default | |
| PhysicalDevice (PhysicalDevice &&r) noexcept | |
| PhysicalDevice & | operator= (PhysicalDevice const &r)=default |
| PhysicalDevice & | operator= (PhysicalDevice &&r) noexcept |
| VkPhysicalDevice | getDevice () const |
| bool | checkDeviceExtensionSupport () const |
| Check if the device support the required extensions. | |
| unsigned int | rateDeviceSuitability (VkSurfaceKHR surface) const |
| Give a score to the device. | |
| QueueFamilyIndices | findQueueFamilies (VkSurfaceKHR surface) const |
| Retrieve the QueueFamilyIndices. | |
| SwapChainSupportDetails | querySwapChainSupport (VkSurfaceKHR surface) const |
| uint32_t | findMemoryType (uint32_t typeFilter, VkMemoryPropertyFlags properties) const |
| uint32_t | getMaxImageDimension2D () const |
| uint32_t | getMinUniformBufferOffsetAlignment () const |
| VkDeviceSize | getMaxMemoryAllocationSize () const |
| uint32_t | getMaxMemoryAllocationCount () const |
| VkPhysicalDeviceFeatures | getFeatures () const |
| VkPhysicalDeviceFeatures2 | getFeatures2 () const |
| VkPhysicalDeviceRobustness2FeaturesEXT | getRobustness2Features () const |
Vulkan physical device abstraction.
|
nodiscard |
Check if the device support the required extensions.
This will check extensions in fge::vulkan::DeviceExtensions.
|
nodiscard |
Retrieve the QueueFamilyIndices.
A QueueFamilyIndices is a struct containing the index of the graphic and present queue families if they exist.
| surface | The associated surface |
|
nodiscard |
Give a score to the device.
This score is used to choose the best device, the higher the score, the better the device. A discrete GPU will have a higher score than an integrated GPU.
A score of 0 means the device is not suitable.
| surface | The associated surface |