nngn
Loading...
Searching...
No Matches
anonymous_namespace{vulkan.cpp}::Buffers Class Reference
Collaboration diagram for anonymous_namespace{vulkan.cpp}::Buffers:

Classes

struct  Configuration
 

Public Types

using Type = nngn::Graphics::BufferConfiguration::Type
 

Public Member Functions

 Buffers (void)=default
 
 ~Buffers (void)
 
void init (VkDevice dev_, nngn::DeviceMemory *dev_mem_)
 
nngn::Bufferbuffer (u32 b)
 
std::tuple< VkBuffer, VkDeviceSize > vbo (std::size_t i, u32 b)
 
std::tuple< VkBuffer, VkDeviceSize, VkDeviceSize > ebo (std::size_t i, u32 b)
 
u32 create (const nngn::Instance &inst, const nngn::Graphics::BufferConfiguration &conf)
 
bool resize (const nngn::Instance &inst, std::size_t n_frames)
 
bool set_capacity (const nngn::Instance &inst, u32 b, VkDeviceSize n)
 
void set_size (u32 b, u64 size)
 
void copy (VkCommandBuffer cmd, u32 dst, VkBuffer src, VkDeviceSize dst_off, VkDeviceSize src_off, VkDeviceSize n)
 

Private Attributes

VkDevice dev = {}
 
nngn::DeviceMemorydev_mem = {}
 
std::vector< nngn::Bufferbuffers = {{}}
 
std::vector< Configurationconf = {{}}
 
std::size_t n_frames = {}
 

Member Typedef Documentation

◆ Type

using anonymous_namespace{vulkan.cpp}::Buffers::Type = nngn::Graphics::BufferConfiguration::Type

Constructor & Destructor Documentation

◆ Buffers()

anonymous_namespace{vulkan.cpp}::Buffers::Buffers ( void )
default

◆ ~Buffers()

anonymous_namespace{vulkan.cpp}::Buffers::~Buffers ( void )

Member Function Documentation

◆ buffer()

nngn::Buffer & anonymous_namespace{vulkan.cpp}::Buffers::buffer ( u32 b)
inline

◆ copy()

void anonymous_namespace{vulkan.cpp}::Buffers::copy ( VkCommandBuffer cmd,
u32 dst,
VkBuffer src,
VkDeviceSize dst_off,
VkDeviceSize src_off,
VkDeviceSize n )
Here is the caller graph for this function:

◆ create()

u32 anonymous_namespace{vulkan.cpp}::Buffers::create ( const nngn::Instance & inst,
const nngn::Graphics::BufferConfiguration & conf )
Here is the caller graph for this function:

◆ ebo()

std::tuple< VkBuffer, VkDeviceSize, VkDeviceSize > anonymous_namespace{vulkan.cpp}::Buffers::ebo ( std::size_t i,
u32 b )
Here is the caller graph for this function:

◆ init()

void anonymous_namespace{vulkan.cpp}::Buffers::init ( VkDevice dev_,
nngn::DeviceMemory * dev_mem_ )
inline
Here is the caller graph for this function:

◆ resize()

bool anonymous_namespace{vulkan.cpp}::Buffers::resize ( const nngn::Instance & inst,
std::size_t n_frames )
Here is the caller graph for this function:

◆ set_capacity()

bool anonymous_namespace{vulkan.cpp}::Buffers::set_capacity ( const nngn::Instance & inst,
u32 b,
VkDeviceSize n )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_size()

void anonymous_namespace{vulkan.cpp}::Buffers::set_size ( u32 b,
u64 size )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ vbo()

std::tuple< VkBuffer, VkDeviceSize > anonymous_namespace{vulkan.cpp}::Buffers::vbo ( std::size_t i,
u32 b )
Here is the caller graph for this function:

Member Data Documentation

◆ buffers

std::vector<nngn::Buffer> anonymous_namespace{vulkan.cpp}::Buffers::buffers = {{}}
private

◆ conf

std::vector<Configuration> anonymous_namespace{vulkan.cpp}::Buffers::conf = {{}}
private

◆ dev

VkDevice anonymous_namespace{vulkan.cpp}::Buffers::dev = {}
private

◆ dev_mem

nngn::DeviceMemory* anonymous_namespace{vulkan.cpp}::Buffers::dev_mem = {}
private

◆ n_frames

std::size_t anonymous_namespace{vulkan.cpp}::Buffers::n_frames = {}
private

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