Skip to content

KDGpu::VulkanQueue

Module: Vulkan

VulkanQueue.

#include <vulkan_queue.h>

Inherits from KDGpu::ApiQueue

Public Functions

Name
VulkanQueue(VkQueue _queue, VulkanResourceManager * _vulkanResourceManager)
virtual void waitUntilIdle()
virtual void submit(const SubmitOptions & options)
virtual PresentResult present(const PresentOptions & options)
virtual std::vector< PresentResult > lastPerSwapchainPresentResults() const

Public Attributes

Name
VkQueue queue
VulkanResourceManager * vulkanResourceManager
std::vector< VkSemaphore > m_vkWaitSemaphores
std::vector< VkPipelineStageFlags > m_vkWaitStageFlags
std::vector< VkSemaphore > m_vkSignalSemaphores
std::vector< VkCommandBuffer > m_vkCommandBuffers
std::vector< VkSemaphore > m_presentVkWaitSemaphores
std::vector< VkSwapchainKHR > m_swapchains
std::vector< uint32_t > m_imageIndices
std::vector< VkResult > m_presentResults

Public Functions Documentation

function VulkanQueue

1
2
3
4
explicit VulkanQueue(
    VkQueue _queue,
    VulkanResourceManager * _vulkanResourceManager
)

function waitUntilIdle

1
virtual void waitUntilIdle()

Reimplements: KDGpu::ApiQueue::waitUntilIdle

function submit

1
2
3
virtual void submit(
    const SubmitOptions & options
)

Reimplements: KDGpu::ApiQueue::submit

function present

1
2
3
virtual PresentResult present(
    const PresentOptions & options
)

Reimplements: KDGpu::ApiQueue::present

function lastPerSwapchainPresentResults

1
virtual std::vector< PresentResult > lastPerSwapchainPresentResults() const

Reimplements: KDGpu::ApiQueue::lastPerSwapchainPresentResults

Public Attributes Documentation

variable queue

1
VkQueue queue { VK_NULL_HANDLE };

variable vulkanResourceManager

1
VulkanResourceManager * vulkanResourceManager { nullptr };

variable m_vkWaitSemaphores

1
std::vector< VkSemaphore > m_vkWaitSemaphores;

variable m_vkWaitStageFlags

1
std::vector< VkPipelineStageFlags > m_vkWaitStageFlags;

variable m_vkSignalSemaphores

1
std::vector< VkSemaphore > m_vkSignalSemaphores;

variable m_vkCommandBuffers

1
std::vector< VkCommandBuffer > m_vkCommandBuffers;

variable m_presentVkWaitSemaphores

1
std::vector< VkSemaphore > m_presentVkWaitSemaphores;

variable m_swapchains

1
std::vector< VkSwapchainKHR > m_swapchains;

variable m_imageIndices

1
std::vector< uint32_t > m_imageIndices;

variable m_presentResults

1
std::vector< VkResult > m_presentResults;

Updated on 2024-12-22 at 00:08:03 +0000