struct
#include <VaultedVulkan/VV_SwapChain.hpp>
Swapchain A queue of images that can be presented to a surface.
Contents
Base classes
- struct VV::V1::Swapchain
- A queue of images that can be presented to a surface.
Derived classes
- class VV::V3::Swapchain
- A queue of images that can be presented to a surface.
Public types
-
using Parent = V1::
Swapchain
Public static functions
-
static auto Create(LogicalDevice::
Handle _deviceHandle, const CreateInfo& _info, Handle& _swapChain) -> EResult - Create a swapchain (Default Allocator).
-
static void Destroy(LogicalDevice::
Handle _deviceHandle, Handle _swapChainToDestroy) - Destroy a swapchain (Default Allocator).
-
static auto GetImages(LogicalDevice::
Handle _deviceHandle, Handle _swapChain, DynamicArray<Image:: Handle>* _images) -> EResult - Provides all presentable images with the swapchain.
-
static auto Create(LogicalDevice::
Handle _deviceHandle, const CreateInfo& _info, const Memory:: AllocationCallbacks* _allocator, Handle& _swapChain) -> EResult - Create a swapchain.
-
static void Destroy(LogicalDevice::
Handle _deviceHandle, Handle _swapChainToDestroy, const Memory:: AllocationCallbacks* _allocator) - Destroy a swapchain object.
Function documentation
static EResult VV:: V2:: Swapchain:: Create(LogicalDevice:: Handle _deviceHandle,
const CreateInfo& _info,
const Memory:: AllocationCallbacks* _allocator,
Handle& _swapChain)
Create a swapchain.
If the oldSwapchain parameter of pCreateInfo is a valid swapchain, which has exclusive full-screen access, that access is released from oldSwapchain. If the command succeeds in this case, the newly created swapchain will automatically acquire exclusive full-screen access from oldSwapchain. Specification
static void VV:: V2:: Swapchain:: Destroy(LogicalDevice:: Handle _deviceHandle,
Handle _swapChainToDestroy,
const Memory:: AllocationCallbacks* _allocator)
Destroy a swapchain object.
The application must not destroy a swapchain until after completion of all outstanding operations on images that were acquired from the swapchain. swapchain and all associated VkImage handles are destroyed, and must not be acquired or used any more by the application. Specification