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

#include <CommandBuffer.hpp>

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

Public Member Functions

 CommandBuffer (const API::Device &device, const API::CommandPool &commandPool)
 
 CommandBuffer (const CommandBuffer &)=delete
 
 CommandBuffer (CommandBuffer &&)=delete
 
CommandBufferoperator= (const CommandBuffer &)=delete
 
CommandBufferoperator= (CommandBuffer &&)=delete
 
 ~CommandBuffer ()=default
 
void setLevel (VkCommandBufferLevel level)
 
bool build (API::CommandBuffer &instance, VkResult *returnResult=nullptr)
 
std::unique_ptr< API::CommandBufferbuild (VkResult *returnResult=nullptr)
 
bool build (std::vector< API::CommandBuffer > &commandBuffers, VkResult *returnResult=nullptr)
 
std::vector< std::unique_ptr< API::CommandBuffer > > build (uint32_t count, VkResult *returnResult=nullptr)
 

Private Attributes

const API::Device_device
 
const API::CommandPool_commandPool
 
VkCommandBufferLevel _level {VK_COMMAND_BUFFER_LEVEL_PRIMARY}
 

Detailed Description

Definition at line 18 of file CommandBuffer.hpp.

Constructor & Destructor Documentation

◆ CommandBuffer() [1/3]

lug::Graphics::Vulkan::API::Builder::CommandBuffer::CommandBuffer ( const API::Device device,
const API::CommandPool commandPool 
)

Definition at line 12 of file CommandBuffer.cpp.

◆ CommandBuffer() [2/3]

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

◆ CommandBuffer() [3/3]

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

◆ ~CommandBuffer()

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

Member Function Documentation

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ setLevel()

void CommandBuffer::setLevel ( VkCommandBufferLevel  level)
inline

Definition at line 1 of file CommandBuffer.inl.

◆ build() [1/4]

bool lug::Graphics::Vulkan::API::Builder::CommandBuffer::build ( API::CommandBuffer instance,
VkResult *  returnResult = nullptr 
)

Definition at line 14 of file CommandBuffer.cpp.

◆ build() [2/4]

std::unique_ptr< API::CommandBuffer > lug::Graphics::Vulkan::API::Builder::CommandBuffer::build ( VkResult *  returnResult = nullptr)

Definition at line 23 of file CommandBuffer.cpp.

◆ build() [3/4]

bool lug::Graphics::Vulkan::API::Builder::CommandBuffer::build ( std::vector< API::CommandBuffer > &  commandBuffers,
VkResult *  returnResult = nullptr 
)

Definition at line 28 of file CommandBuffer.cpp.

◆ build() [4/4]

std::vector< std::unique_ptr< API::CommandBuffer > > lug::Graphics::Vulkan::API::Builder::CommandBuffer::build ( uint32_t  count,
VkResult *  returnResult = nullptr 
)

Definition at line 58 of file CommandBuffer.cpp.

Member Data Documentation

◆ _device

const API::Device& lug::Graphics::Vulkan::API::Builder::CommandBuffer::_device
private

Definition at line 41 of file CommandBuffer.hpp.

◆ _commandPool

const API::CommandPool& lug::Graphics::Vulkan::API::Builder::CommandBuffer::_commandPool
private

Definition at line 43 of file CommandBuffer.hpp.

◆ _level

VkCommandBufferLevel lug::Graphics::Vulkan::API::Builder::CommandBuffer::_level {VK_COMMAND_BUFFER_LEVEL_PRIMARY}
private

Definition at line 44 of file CommandBuffer.hpp.


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