VulkanEngine 0.1
Graphics engine using Vulkan
Loading...
Searching...
No Matches
VulkanEngine::BufferBase Class Reference

Base class for various classes which represent data buffers on the GPU/CPU. More...

#include <BufferBase.h>

Inheritance diagram for VulkanEngine::BufferBase:
VulkanEngine::StagedBufferDestination VulkanEngine::Buffer VulkanEngine::Image< format, image_type, tiling, sample_count_flags > VulkanEngine::StagedBuffer< Buffer > VulkanEngine::UniformBuffer< T > VulkanEngine::ShaderImage< format, image_type, tiling, sample_count_flags > VulkanEngine::Attribute VulkanEngine::IndexAttribute< T > VulkanEngine::VertexAttribute< T >

Public Member Functions

virtual void updateBuffer (const void *_data, size_t _data_size)
 

Protected Attributes

VmaAllocation vma_allocation
 

Detailed Description

Base class for various classes which represent data buffers on the GPU/CPU.

Member Function Documentation

◆ updateBuffer()

void VulkanEngine::BufferBase::updateBuffer ( const void *  _data,
size_t  _data_size 
)
virtual

Copy the data to the buffer.

Parameters
dataPointer to the data.
data_sizeThe size of the data in bytes.

Reimplemented in VulkanEngine::StagedBuffer< Buffer >.

Member Data Documentation

◆ vma_allocation

VmaAllocation VulkanEngine::BufferBase::vma_allocation
protected

VmaAllocation used to handle allocation with Vulkan Memory Allocator library.


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