The JEVulkanSwapChain class.
More...
#include <VulkanSwapChain.h>
The JEVulkanSwapChain class.
Class that creates and manages data for the swap chain.
◆ JEVulkanSwapChain()
JoeEngine::JEVulkanSwapChain::JEVulkanSwapChain |
( |
| ) |
|
|
default |
◆ ~JEVulkanSwapChain()
JoeEngine::JEVulkanSwapChain::~JEVulkanSwapChain |
( |
| ) |
|
|
default |
◆ CheckDeviceExtensionSupport()
bool JoeEngine::JEVulkanSwapChain::CheckDeviceExtensionSupport |
( |
VkPhysicalDevice |
physicalDevice | ) |
const |
Get extension support for the Vulkan physical device.
- Parameters
-
physicalDevice | the Vulkan physical device to check for extension support with. |
- Returns
- true if the physical device supports all necessary extensions.
◆ Cleanup()
void JoeEngine::JEVulkanSwapChain::Cleanup |
( |
VkDevice |
device | ) |
|
Cleanup memory.
- Parameters
-
device | the Vulkan logical device needed for cleanup. |
◆ Create()
void JoeEngine::JEVulkanSwapChain::Create |
( |
VkPhysicalDevice |
physicalDevice, |
|
|
VkDevice |
device, |
|
|
const JEVulkanWindow & |
vulkanWindow, |
|
|
uint32_t |
width, |
|
|
uint32_t |
height |
|
) |
| |
Create the swap chain object.
- Parameters
-
physicalDevice | the Vulkan physical device. |
device | the Vulkan logical device. |
vulkanWindow | the JEVulkanWindow object. |
width | the intended swap chain width. |
height | the intended swap chain height. |
◆ GetDeviceExtensions()
static std::vector<const char*> JoeEngine::JEVulkanSwapChain::GetDeviceExtensions |
( |
| ) |
|
|
inlinestatic |
Get necessary swap chain device extension name(s).
- Returns
- list of swap chain device extension name(s).
◆ GetExtent()
VkExtent2D JoeEngine::JEVulkanSwapChain::GetExtent |
( |
| ) |
const |
|
inline |
Get swap chain extent.
- Returns
- swap chain extent (dimensions).
◆ GetFormat()
VkFormat JoeEngine::JEVulkanSwapChain::GetFormat |
( |
| ) |
const |
|
inline |
Get swap chain format.
- Returns
- the swap chain image format.
◆ GetImageViews()
const std::vector<VkImageView>& JoeEngine::JEVulkanSwapChain::GetImageViews |
( |
| ) |
const |
|
inline |
Get list of swap chain image views.
- Returns
- list of swap chain image view objects.
◆ GetSwapChain()
VkSwapchainKHR JoeEngine::JEVulkanSwapChain::GetSwapChain |
( |
| ) |
const |
|
inline |
Get swap chain object.
- Returns
- swap chain object.
◆ QuerySwapChainSupport()
SwapChainSupportDetails JoeEngine::JEVulkanSwapChain::QuerySwapChainSupport |
( |
VkPhysicalDevice |
physicalDevice, |
|
|
VkSurfaceKHR |
surface |
|
) |
| const |
Get swap chain support details.
Returns a struct containing all data detailing the swap chain capabilities of the device.
- Parameters
-
physicalDevice | the Vulkan physical device to check support with. |
surface | the Vulkan surface to check support with. |
- Returns
- struct containing swap chain support details.
The documentation for this class was generated from the following files: