Lugdunum  0.1.0
Public Member Functions | Private Attributes | List of all members
lug::Graphics::Vulkan::Render::BufferPool::Chunk< subBufferPerChunk, subBufferSize > Class Template Reference

#include <Chunk.hpp>

Collaboration diagram for lug::Graphics::Vulkan::Render::BufferPool::Chunk< subBufferPerChunk, subBufferSize >:
[legend]

Public Member Functions

 Chunk ()=default
 
 Chunk (const Chunk &)=delete
 
 Chunk (Chunk &&)=delete
 
Chunkoperator= (const Chunk &)=delete
 
Chunkoperator= (Chunk &&)=delete
 
 ~Chunk ()=default
 
bool init (Renderer &renderer, std::set< uint32_t > queueFamilyIndices)
 
SubBuffergetFreeSubBuffer ()
 

Private Attributes

API::DeviceMemory _bufferMemory
 
API::Buffer _buffer
 
std::array< SubBuffer, subBufferPerChunk > _subBuffers
 

Detailed Description

template<size_t subBufferPerChunk, size_t subBufferSize>
class lug::Graphics::Vulkan::Render::BufferPool::Chunk< subBufferPerChunk, subBufferSize >

Definition at line 16 of file Chunk.hpp.

Constructor & Destructor Documentation

◆ Chunk() [1/3]

template<size_t subBufferPerChunk, size_t subBufferSize>
lug::Graphics::Vulkan::Render::BufferPool::Chunk< subBufferPerChunk, subBufferSize >::Chunk ( )
default

◆ Chunk() [2/3]

template<size_t subBufferPerChunk, size_t subBufferSize>
lug::Graphics::Vulkan::Render::BufferPool::Chunk< subBufferPerChunk, subBufferSize >::Chunk ( const Chunk< subBufferPerChunk, subBufferSize > &  )
delete

◆ Chunk() [3/3]

template<size_t subBufferPerChunk, size_t subBufferSize>
lug::Graphics::Vulkan::Render::BufferPool::Chunk< subBufferPerChunk, subBufferSize >::Chunk ( Chunk< subBufferPerChunk, subBufferSize > &&  )
delete

◆ ~Chunk()

template<size_t subBufferPerChunk, size_t subBufferSize>
lug::Graphics::Vulkan::Render::BufferPool::Chunk< subBufferPerChunk, subBufferSize >::~Chunk ( )
default

Member Function Documentation

◆ operator=() [1/2]

template<size_t subBufferPerChunk, size_t subBufferSize>
Chunk& lug::Graphics::Vulkan::Render::BufferPool::Chunk< subBufferPerChunk, subBufferSize >::operator= ( const Chunk< subBufferPerChunk, subBufferSize > &  )
delete

◆ operator=() [2/2]

template<size_t subBufferPerChunk, size_t subBufferSize>
Chunk& lug::Graphics::Vulkan::Render::BufferPool::Chunk< subBufferPerChunk, subBufferSize >::operator= ( Chunk< subBufferPerChunk, subBufferSize > &&  )
delete

◆ init()

template<size_t subBufferPerChunk, size_t subBufferSize>
bool Chunk::init ( Renderer renderer,
std::set< uint32_t >  queueFamilyIndices 
)
inline

Definition at line 2 of file Chunk.inl.

◆ getFreeSubBuffer()

template<size_t subBufferPerChunk, size_t subBufferSize>
SubBuffer * Chunk::getFreeSubBuffer ( )
inline

Definition at line 56 of file Chunk.inl.

Member Data Documentation

◆ _bufferMemory

template<size_t subBufferPerChunk, size_t subBufferSize>
API::DeviceMemory lug::Graphics::Vulkan::Render::BufferPool::Chunk< subBufferPerChunk, subBufferSize >::_bufferMemory
private

Definition at line 33 of file Chunk.hpp.

◆ _buffer

template<size_t subBufferPerChunk, size_t subBufferSize>
API::Buffer lug::Graphics::Vulkan::Render::BufferPool::Chunk< subBufferPerChunk, subBufferSize >::_buffer
private

Definition at line 34 of file Chunk.hpp.

◆ _subBuffers

template<size_t subBufferPerChunk, size_t subBufferSize>
std::array<SubBuffer, subBufferPerChunk> lug::Graphics::Vulkan::Render::BufferPool::Chunk< subBufferPerChunk, subBufferSize >::_subBuffers
private

Definition at line 36 of file Chunk.hpp.


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