VulkanEngine 0.1
Graphics engine using Vulkan
Loading...
Searching...
No Matches
VulkanEngine::VulkanManager Class Reference

#include <VulkanManager.h>

Public Member Functions

 ~VulkanManager ()
 Destructor.
 
 VulkanManager (const VulkanManager &)=delete
 Delete copy constructor to disallow duplicates.
 
void operator= (const VulkanManager &)=delete
 Delete assignment operator to disallow duplicates.
 
bool initialize (const std::shared_ptr< Window > _window)
 
vk::CommandBuffer getCurrentCommandBuffer ()
 
void waitForFence ()
 
vk::Framebuffer getCurrentSwapchainFramebuffer ()
 
void drawImage ()
 Executes all command buffers and swaps buffers.
 
std::shared_ptr< DevicegetDevice ()
 
vk::Instance getVkInstance () const
 
const std::shared_ptr< RenderPassgetDefaultRenderPass () const
 
const size_t getCurrentFrame () const
 
const size_t getFramesInFlight () const
 

Static Public Member Functions

static VulkanManagergetInstance ()
 
static void resetInstance ()
 Reset the singleton instance.
 
static void destroyInstance ()
 Destroy the singleton instance of the VulkanManager.
 

Detailed Description

TODO this class is a work in progress. The current goal is to modulerize this more and place functionality in seperate classes.

Member Function Documentation

◆ getInstance()

VulkanEngine::VulkanManager & VulkanEngine::VulkanManager::getInstance ( )
static

Get the singleton instance of the VulkanManager. Creates the instance when first called.

Returns
The singleton VulkanManager instance.

◆ initialize()

bool VulkanEngine::VulkanManager::initialize ( const std::shared_ptr< Window _window)

Initialize the VulkanManager.

Parameters
_windowThe Window instance to use with the manager.

The documentation for this class was generated from the following files: