VV::V1::Swapchain struct

A queue of images that can be presented to a surface.

Specification

Derived classes

struct VV::V2::Swapchain
A queue of images that can be presented to a surface.

Public types

struct CreateInfo
Specification
struct PresentationInfo
Specification
using Handle = VkSwapchainKHR
Specification
using ECreateFlag = ESwapchainCreateFlag
using CreateFlags = Bitfield<ESwapchainCreateFlag, VkSwapchainCreateFlagsKHR>
Specification

Public static functions

static auto AcquireNextImage(LogicalDevice::Handle _device, Handle _swapchain, u64 _timeout, Semaphore::Handle _semaphore, Fence::Handle _fence, ui32& _imageIndex) -> EResult
Acquire an available presentable image to use, and retrieve the index of that image.
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.
static auto GetStatus(LogicalDevice::Handle _device, Handle _swapchain) -> EResult
Query a swapchains status when rendering to a shared presentable image.
static auto QueryImages(LogicalDevice::Handle _deviceHandle, Handle _swapChain, ui32& _numImages, Image::Handle* _imagesContainer) -> EResult
Obtain the array of presentable images associated with a swapchain.