![]() |
HoviTron Video Pipeline
|
The class that manages the drawing operation (manage and record command buffers). More...
#include <VulkanDrawing.h>
Public Member Functions | |
VulkanDrawing (VulkanContext *context, VulkanRenderPassAbstract *renderPass, WindowAbstract *window, VulkanWrapper *wraps) | |
void | init (InputProvider *inputProvider) |
void | cleanup () |
bool | isInitialized () |
vk::Fence | submitDrawCall (std::tuple< int, uint32_t > idImage, const std::vector< vk::Semaphore > &imageAvailableSemaphores, std::vector< vk::Semaphore > &signalSemaphore, uint32_t depthIndex=UINT_MAX) |
The class that manages the drawing operation (manage and record command buffers).
The class that manages the drawing operation. It manage, record command buffers and submit command buffer. Command buffer are reset each new frame for each view. It may add some additional operation after a renderpass to copy images if needed.
Definition at line 46 of file VulkanDrawing.h.
VulkanDrawing::VulkanDrawing | ( | VulkanContext * | context, |
VulkanRenderPassAbstract * | renderPass, | ||
WindowAbstract * | window, | ||
VulkanWrapper * | wraps | ||
) |
COnstructor
Definition at line 34 of file VulkanDrawing.cpp.
void VulkanDrawing::cleanup | ( | ) |
Clean up ressources
Definition at line 60 of file VulkanDrawing.cpp.
void VulkanDrawing::init | ( | InputProvider * | inputProvider | ) |
Init the needed ressources
Definition at line 43 of file VulkanDrawing.cpp.
bool VulkanDrawing::isInitialized | ( | ) |
Return true if ressources were allocated and need to be cleaned up
Definition at line 473 of file VulkanDrawing.cpp.
vk::Fence VulkanDrawing::submitDrawCall | ( | std::tuple< int, uint32_t > | idImage, |
const std::vector< vk::Semaphore > & | imageAvailableSemaphores, | ||
std::vector< vk::Semaphore > & | signalSemaphore, | ||
uint32_t | depthIndex = UINT_MAX |
||
) |
Function that is called each frame by the window to render a new frame. Synchronization can be done with semaphore or fence
Definition at line 94 of file VulkanDrawing.cpp.