Skip to content

KDGpu::VulkanSwapchain

Module: Vulkan

VulkanSwapchain.

#include <vulkan_swapchain.h>

Inherits from KDGpu::ApiSwapchain

Public Functions

Name
VulkanSwapchain(VkSwapchainKHR _swapchain, Format _format, Extent3D _extent, uint32_t _arrayLayers, TextureUsageFlags _imageUsageFlags, VulkanResourceManager * _vulkanResourceManager, const Handle< Device_t > & _deviceHandle)
virtual std::vector< Handle< Texture_t > > getTextures()
virtual 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
virtual std::vector< Handle< Texture_t > > getTextures()

Reimplements: KDGpu::ApiSwapchain::getTextures

function getNextImageIndex

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

Reimplements: KDGpu::ApiSwapchain::getNextImageIndex

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:08:03 +0000