2#include <vulkan/vulkan.h>
30 void create(VkDevice
device, uint32_t queueFamilyIndex, uint32_t commandBufferCount = 2);
VulkanCommandManager()=default
Construct a new Vulkan Command Manager object.
std::vector< VkCommandBuffer > commandBuffers
Array of primary frame command buffers.
Definition VulkanCommandManager.hpp:85
void endOneTimeCommand(VkCommandBuffer commandBuffer, VkQueue queue)
Ends, submits, waits on, and releases a one-time utility command buffer.
Definition VulkanCommandManager.cpp:105
size_t currentFrame
Active frame command buffer array index.
Definition VulkanCommandManager.hpp:87
~VulkanCommandManager()
Destroy the Vulkan Command Manager object and release command pool.
Definition VulkanCommandManager.cpp:6
size_t getCurrentFrame() const
Gets active double buffering frame index.
Definition VulkanCommandManager.hpp:56
VkCommandPool commandPool
Raw command pool handle.
Definition VulkanCommandManager.hpp:83
VkCommandPool getCommandPool() const
Gets raw Vulkan command pool.
Definition VulkanCommandManager.hpp:40
VkCommandBuffer getCurrentCommandBuffer() const
Gets command buffer corresponding to current frame index.
Definition VulkanCommandManager.hpp:45
void beginFrame()
Alternates the frame index and begins recording the next frame command buffer.
Definition VulkanCommandManager.cpp:53
void destroy()
Safely destroys the command pool and associated command buffers.
Definition VulkanCommandManager.cpp:13
VulkanCommandManager(const VulkanCommandManager &)=delete
VkCommandBuffer getCommandBuffer(size_t index) const
Gets command buffer at specified array index.
Definition VulkanCommandManager.hpp:51
VkDevice device
Reference to Vulkan logical device.
Definition VulkanCommandManager.hpp:81
VkCommandBuffer beginOneTimeCommand()
Allocates and begins recording a one-time utility command buffer.
Definition VulkanCommandManager.cpp:80
void create(VkDevice device, uint32_t queueFamilyIndex, uint32_t commandBufferCount=2)
Creates command pool and command buffers.
Definition VulkanCommandManager.cpp:26
void endFrame()
Ends command buffer recording for the active frame.
Definition VulkanCommandManager.cpp:70
VulkanCommandManager & operator=(const VulkanCommandManager &)=delete
static ufbxi_noinline ufbxi_aa_node index
Definition ufbx.cpp:4444