Chronos 0.0
A advanced 2D rendering and animation system
|
Go to the source code of this file.
Functions | |
static bool | checkDeviceExtensionSupport (VkPhysicalDevice device) |
Checks if the physical device that we provide it supports the extestions we need. This is used to check if the physical device that we provide it supports the extensions that we need. | |
static bool | isDeviceSuitable (VkPhysicalDevice device, VkSurfaceKHR surface) |
Checks if the physical device that we provide it is suitable for our needs. | |
VkSampleCountFlagBits | getMaxUsableSampleCount (VkPhysicalDevice physicalDevice) |
Gets the maxmimum supported MSAA sample count. | |
|
inlinestatic |
Checks if the physical device that we provide it supports the extestions we need. This is used to check if the physical device that we provide it supports the extensions that we need.
device | The physical device to check. |
Definition at line 47 of file device.cpp.
References Chronos::Engine::deviceExtensions.
VkSampleCountFlagBits getMaxUsableSampleCount | ( | VkPhysicalDevice | physicalDevice | ) |
Gets the maxmimum supported MSAA sample count.
This gets the maximum supported MSAA sample count for the physical device that we provide it.
physicalDevice | The physical device to get the maxium supported MSAA sample count for. |
Definition at line 113 of file device.cpp.
|
inlinestatic |
Checks if the physical device that we provide it is suitable for our needs.
For a physical device to be suitable, it must support the extensions that we need, and it must be capable of rendering to the surface that we provide it along with rendering the frames.
physicalDevice | The physical device to check. |
surface | The surface to which we are rendering. |
Definition at line 81 of file device.cpp.
References checkDeviceExtensionSupport(), Chronos::Engine::findQueueFamilies(), Chronos::Engine::SwapChainSupportDetails::formats, Chronos::Engine::QueueFamilyIndices::isComplete(), Chronos::Engine::SwapChainSupportDetails::presentModes, and Chronos::Engine::querySwapChainSupport().