Lugdunum  0.1.0
Public Member Functions | Private Attributes | Friends | List of all members
lug::Graphics::Vulkan::Render::BufferPool::SubBuffer Class Reference

#include <SubBuffer.hpp>

Collaboration diagram for lug::Graphics::Vulkan::Render::BufferPool::SubBuffer:
[legend]

Public Member Functions

 SubBuffer ()=default
 
 SubBuffer (const API::Buffer *buffer, uint32_t offset, uint32_t size)
 
 SubBuffer (const SubBuffer &)=delete
 
 SubBuffer (SubBuffer &&)=default
 
SubBufferoperator= (const SubBuffer &)=delete
 
SubBufferoperator= (SubBuffer &&)=default
 
 ~SubBuffer ()=default
 
const API::BuffergetBuffer () const
 
uint32_t getOffset () const
 
uint32_t getSize () const
 
size_t getHash () const
 
void setHash (size_t hash)
 

Private Attributes

const API::Buffer_buffer {nullptr}
 
uint32_t _offset {0}
 
uint32_t _size {0}
 
size_t _hash {0}
 
uint32_t _referenceCount {0}
 

Friends

template<size_t subBufferPerChunk, size_t subBufferSize>
class BufferPool
 
template<size_t subBufferPerChunk, size_t subBufferSize>
class Chunk
 

Detailed Description

Definition at line 25 of file SubBuffer.hpp.

Constructor & Destructor Documentation

◆ SubBuffer() [1/4]

lug::Graphics::Vulkan::Render::BufferPool::SubBuffer::SubBuffer ( )
default

◆ SubBuffer() [2/4]

SubBuffer::SubBuffer ( const API::Buffer buffer,
uint32_t  offset,
uint32_t  size 
)
inline

Definition at line 1 of file SubBuffer.inl.

◆ SubBuffer() [3/4]

lug::Graphics::Vulkan::Render::BufferPool::SubBuffer::SubBuffer ( const SubBuffer )
delete

◆ SubBuffer() [4/4]

lug::Graphics::Vulkan::Render::BufferPool::SubBuffer::SubBuffer ( SubBuffer &&  )
default

◆ ~SubBuffer()

lug::Graphics::Vulkan::Render::BufferPool::SubBuffer::~SubBuffer ( )
default

Member Function Documentation

◆ operator=() [1/2]

SubBuffer& lug::Graphics::Vulkan::Render::BufferPool::SubBuffer::operator= ( const SubBuffer )
delete

◆ operator=() [2/2]

SubBuffer& lug::Graphics::Vulkan::Render::BufferPool::SubBuffer::operator= ( SubBuffer &&  )
default

◆ getBuffer()

const API::Buffer * SubBuffer::getBuffer ( ) const
inline

Definition at line 3 of file SubBuffer.inl.

◆ getOffset()

uint32_t SubBuffer::getOffset ( ) const
inline

Definition at line 7 of file SubBuffer.inl.

◆ getSize()

uint32_t SubBuffer::getSize ( ) const
inline

Definition at line 11 of file SubBuffer.inl.

◆ getHash()

size_t SubBuffer::getHash ( ) const
inline

Definition at line 15 of file SubBuffer.inl.

◆ setHash()

void SubBuffer::setHash ( size_t  hash)
inline

Definition at line 19 of file SubBuffer.inl.

Friends And Related Function Documentation

◆ BufferPool

template<size_t subBufferPerChunk, size_t subBufferSize>
friend class BufferPool
friend

Definition at line 27 of file SubBuffer.hpp.

◆ Chunk

template<size_t subBufferPerChunk, size_t subBufferSize>
friend class Chunk
friend

Definition at line 30 of file SubBuffer.hpp.

Member Data Documentation

◆ _buffer

const API::Buffer* lug::Graphics::Vulkan::Render::BufferPool::SubBuffer::_buffer {nullptr}
private

Definition at line 52 of file SubBuffer.hpp.

◆ _offset

uint32_t lug::Graphics::Vulkan::Render::BufferPool::SubBuffer::_offset {0}
private

Definition at line 53 of file SubBuffer.hpp.

◆ _size

uint32_t lug::Graphics::Vulkan::Render::BufferPool::SubBuffer::_size {0}
private

Definition at line 54 of file SubBuffer.hpp.

◆ _hash

size_t lug::Graphics::Vulkan::Render::BufferPool::SubBuffer::_hash {0}
private

Definition at line 56 of file SubBuffer.hpp.

◆ _referenceCount

uint32_t lug::Graphics::Vulkan::Render::BufferPool::SubBuffer::_referenceCount {0}
private

Definition at line 57 of file SubBuffer.hpp.


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