Header menu logo Nu

SwapchainWrapper Type

A wrapper for a vulkan swapchain and its assets.

Record fields

Record Field Description

ImageViews

Full Usage: ImageViews

Field type: VkImageView array
Field type: VkImageView array

Images

Full Usage: Images

Field type: VkImage array
Field type: VkImage array

SwapExtent

Full Usage: SwapExtent

Field type: VkExtent2D
Field type: VkExtent2D

VkSwapchain

Full Usage: VkSwapchain

Field type: VkSwapchainKHR
Field type: VkSwapchainKHR

Static members

Static member Description

SwapchainWrapper.destroy swapchainWrapper

Full Usage: SwapchainWrapper.destroy swapchainWrapper

Parameters:

Destroy a swapchain wrapper.

swapchainWrapper : SwapchainWrapper

SwapchainWrapper.tryCreate surfaceFormat physicalDevice

Full Usage: SwapchainWrapper.tryCreate surfaceFormat physicalDevice

Parameters:
Returns: SwapchainWrapper option

Attempt to create a swapchain wrapper.

surfaceFormat : VkSurfaceFormatKHR
physicalDevice : PhysicalDevice
Returns: SwapchainWrapper option

Type something to start searching.