![]() |
Kale
|
#include <SwapChainSupportDetails.hpp>
Public Member Functions | |
SwapChainSupportDetails () | |
SwapChainSupportDetails (const vk::PhysicalDevice &physicalDevice) | |
bool | deviceIsAdequate () const |
vk::SurfaceFormatKHR | chooseFormat () const |
vk::PresentModeKHR | choosePresentMode () const |
vk::Extent2D | chooseSwapExtent () const |
Public Attributes | |
vk::SurfaceCapabilitiesKHR | capabilities |
std::vector< vk::SurfaceFormatKHR > | formats |
std::vector< vk::PresentModeKHR > | presentModes |
Holds information regarding the swap chain support details for a physical device
Definition at line 29 of file SwapChainSupportDetails.hpp.
SwapChainSupportDetails::SwapChainSupportDetails | ( | ) |
Creates an uninitialized object
Definition at line 33 of file SwapChainSupportDetails.cpp.
SwapChainSupportDetails::SwapChainSupportDetails | ( | const vk::PhysicalDevice & | physicalDevice | ) |
Populates the struct given the physical device and the surface
physicalDevice | The physical device to check for |
Definition at line 41 of file SwapChainSupportDetails.cpp.
vk::SurfaceFormatKHR SwapChainSupportDetails::chooseFormat | ( | ) | const |
Chooses a surface format which passes all required checks for use for rendering
Definition at line 61 of file SwapChainSupportDetails.cpp.
vk::PresentModeKHR SwapChainSupportDetails::choosePresentMode | ( | ) | const |
Chooses a presentation mode for the application to use
Definition at line 73 of file SwapChainSupportDetails.cpp.
vk::Extent2D SwapChainSupportDetails::chooseSwapExtent | ( | ) | const |
Chooses The resolution of the swap chain images
Definition at line 85 of file SwapChainSupportDetails.cpp.
bool SwapChainSupportDetails::deviceIsAdequate | ( | ) | const |
Checks whether or not the device is adequate for our purposes (Must have at least 1 format & present mode)
Definition at line 53 of file SwapChainSupportDetails.cpp.
vk::SurfaceCapabilitiesKHR Kale::Vulkan::SwapChainSupportDetails::capabilities |
The capabilities of the surface
Definition at line 35 of file SwapChainSupportDetails.hpp.
std::vector<vk::SurfaceFormatKHR> Kale::Vulkan::SwapChainSupportDetails::formats |
The supported formats by this physical device and surface
Definition at line 40 of file SwapChainSupportDetails.hpp.
std::vector<vk::PresentModeKHR> Kale::Vulkan::SwapChainSupportDetails::presentModes |
The present modes supported by this physical device and surface
Definition at line 45 of file SwapChainSupportDetails.hpp.