Skip to content

KDGpu::VulkanSwapchain

Module: Vulkan

VulkanSwapchain.

#include <vulkan_swapchain.h>

Public Functions

Name
VulkanSwapchain(VkSwapchainKHR _swapchain, Format _format, Extent3D _extent, uint32_t _arrayLayers, TextureUsageFlags _imageUsageFlags, VulkanResourceManager * _vulkanResourceManager, const Handle< Device_t > & _deviceHandle)
std::vector< Handle< Texture_t > > getTextures()
AcquireImageResult getNextImageIndex(uint32_t & imageIndex, const Handle< GpuSemaphore_t > & semaphore)

Public Attributes

Name
VkSwapchainKHR swapchain
Format format
Extent3D extent
uint32_t arrayLayers
TextureUsageFlags imageUsageFlags
VulkanResourceManager * vulkanResourceManager
Handle< Device_t > deviceHandle

Public Functions Documentation

function VulkanSwapchain

1
2
3
4
5
6
7
8
9
explicit VulkanSwapchain(
    VkSwapchainKHR _swapchain,
    Format _format,
    Extent3D _extent,
    uint32_t _arrayLayers,
    TextureUsageFlags _imageUsageFlags,
    VulkanResourceManager * _vulkanResourceManager,
    const Handle< Device_t > & _deviceHandle
)

function getTextures

1
std::vector< Handle< Texture_t > > getTextures()

function getNextImageIndex

1
2
3
4
AcquireImageResult getNextImageIndex(
    uint32_t & imageIndex,
    const Handle< GpuSemaphore_t > & semaphore
)

Public Attributes Documentation

variable swapchain

1
VkSwapchainKHR swapchain { VK_NULL_HANDLE };

variable format

1
Format format;

variable extent

1
Extent3D extent;

variable arrayLayers

1
uint32_t arrayLayers;

variable imageUsageFlags

1
TextureUsageFlags imageUsageFlags;

variable vulkanResourceManager

1
VulkanResourceManager * vulkanResourceManager { nullptr };

variable deviceHandle

1
Handle< Device_t > deviceHandle;

Updated on 2024-12-22 at 00:01:23 +0000