Lugdunum  0.1.0
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
lug::Graphics::Vulkan::API::CommandBuffer Class Reference

#include <CommandBuffer.hpp>

Collaboration diagram for lug::Graphics::Vulkan::API::CommandBuffer:
[legend]

Public Member Functions

 CommandBuffer ()=default
 
 CommandBuffer (const CommandBuffer &)=delete
 
 CommandBuffer (CommandBuffer &&CommandBuffer)
 
CommandBufferoperator= (const CommandBuffer &)=delete
 
CommandBufferoperator= (CommandBuffer &&CommandBuffer)
 
 ~CommandBuffer ()
 
 operator VkCommandBuffer () const
 
const CommandPoolgetCommandPool () const
 
bool begin (VkCommandBufferUsageFlags flags=VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT) const
 
bool end () const
 
bool reset (bool releaseRessources=false) const
 
void destroy ()
 

Private Member Functions

 CommandBuffer (VkCommandBuffer commandBuffer, const CommandPool *commandPool)
 

Private Attributes

VkCommandBuffer _commandBuffer {VK_NULL_HANDLE}
 
const CommandPool_commandPool {nullptr}
 

Friends

class Builder::CommandBuffer
 

Detailed Description

Definition at line 24 of file CommandBuffer.hpp.

Constructor & Destructor Documentation

◆ CommandBuffer() [1/4]

lug::Graphics::Vulkan::API::CommandBuffer::CommandBuffer ( )
default

◆ CommandBuffer() [2/4]

lug::Graphics::Vulkan::API::CommandBuffer::CommandBuffer ( const CommandBuffer )
delete

◆ CommandBuffer() [3/4]

lug::Graphics::Vulkan::API::CommandBuffer::CommandBuffer ( CommandBuffer &&  CommandBuffer)

Definition at line 14 of file CommandBuffer.cpp.

◆ ~CommandBuffer()

lug::Graphics::Vulkan::API::CommandBuffer::~CommandBuffer ( )

Definition at line 34 of file CommandBuffer.cpp.

◆ CommandBuffer() [4/4]

lug::Graphics::Vulkan::API::CommandBuffer::CommandBuffer ( VkCommandBuffer  commandBuffer,
const CommandPool commandPool 
)
explicitprivate

Definition at line 12 of file CommandBuffer.cpp.

Member Function Documentation

◆ operator=() [1/2]

CommandBuffer& lug::Graphics::Vulkan::API::CommandBuffer::operator= ( const CommandBuffer )
delete

◆ operator=() [2/2]

CommandBuffer & lug::Graphics::Vulkan::API::CommandBuffer::operator= ( CommandBuffer &&  CommandBuffer)

Definition at line 22 of file CommandBuffer.cpp.

◆ operator VkCommandBuffer()

lug::Graphics::Vulkan::API::CommandBuffer::operator VkCommandBuffer ( ) const
inlineexplicit

Definition at line 38 of file CommandBuffer.hpp.

◆ getCommandPool()

const CommandPool * CommandBuffer::getCommandPool ( ) const
inline

Definition at line 1 of file CommandBuffer.inl.

◆ begin()

bool lug::Graphics::Vulkan::API::CommandBuffer::begin ( VkCommandBufferUsageFlags  flags = VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT) const

Definition at line 38 of file CommandBuffer.cpp.

◆ end()

bool lug::Graphics::Vulkan::API::CommandBuffer::end ( ) const

Definition at line 56 of file CommandBuffer.cpp.

◆ reset()

bool lug::Graphics::Vulkan::API::CommandBuffer::reset ( bool  releaseRessources = false) const

Definition at line 67 of file CommandBuffer.cpp.

◆ destroy()

void lug::Graphics::Vulkan::API::CommandBuffer::destroy ( )

Definition at line 78 of file CommandBuffer.cpp.

Friends And Related Function Documentation

◆ Builder::CommandBuffer

friend class Builder::CommandBuffer
friend

Definition at line 25 of file CommandBuffer.hpp.

Member Data Documentation

◆ _commandBuffer

VkCommandBuffer lug::Graphics::Vulkan::API::CommandBuffer::_commandBuffer {VK_NULL_HANDLE}
private

Definition at line 61 of file CommandBuffer.hpp.

◆ _commandPool

const CommandPool* lug::Graphics::Vulkan::API::CommandBuffer::_commandPool {nullptr}
private

Definition at line 63 of file CommandBuffer.hpp.


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