Vulkan Schnee 0.0.1
High-performance rendering engine
Loading...
Searching...
No Matches
EngineCore::DataBuffer Class Referencefinal

#include <DataBuffer.h>

Public Member Functions

 DataBuffer (VkDevice device, VkPhysicalDevice physicalDevice, VmaAllocator allocator, VkBufferUsageFlags bufferUsageFlags, VkMemoryPropertyFlags memoryProperties, VkDeviceSize size)
 ~DataBuffer ()
bool copyTo (const DataBuffer &target, VkCommandBuffer commandBuffer, VkQueue queue) const
void * map () const
void unmap () const
VkBuffer getBuffer () const

Private Attributes

VkDevice device = nullptr
VkPhysicalDevice physicalDevice = nullptr
VmaAllocator allocator_ = VK_NULL_HANDLE
VkBuffer buffer = nullptr
VmaAllocation allocation_ = VK_NULL_HANDLE
VkDeviceSize size = 0u

Detailed Description

Definition at line 9 of file DataBuffer.h.

Constructor & Destructor Documentation

◆ DataBuffer()

EngineCore::DataBuffer::DataBuffer ( VkDevice device,
VkPhysicalDevice physicalDevice,
VmaAllocator allocator,
VkBufferUsageFlags bufferUsageFlags,
VkMemoryPropertyFlags memoryProperties,
VkDeviceSize size )

Definition at line 8 of file DataBuffer.cpp.

References allocation_, allocator_, buffer, device, physicalDevice, and size.

Referenced by copyTo().

Here is the caller graph for this function:

◆ ~DataBuffer()

EngineCore::DataBuffer::~DataBuffer ( )

Definition at line 45 of file DataBuffer.cpp.

References allocation_, allocator_, and buffer.

Member Function Documentation

◆ copyTo()

bool EngineCore::DataBuffer::copyTo ( const DataBuffer & target,
VkCommandBuffer commandBuffer,
VkQueue queue ) const

Definition at line 55 of file DataBuffer.cpp.

References buffer, DataBuffer(), getBuffer(), and size.

Here is the call graph for this function:

◆ getBuffer()

VkBuffer EngineCore::DataBuffer::getBuffer ( ) const

Definition at line 101 of file DataBuffer.cpp.

References buffer.

Referenced by copyTo().

Here is the caller graph for this function:

◆ map()

void * EngineCore::DataBuffer::map ( ) const

Definition at line 79 of file DataBuffer.cpp.

References allocation_, and allocator_.

◆ unmap()

void EngineCore::DataBuffer::unmap ( ) const

Definition at line 93 of file DataBuffer.cpp.

References allocation_, and allocator_.

Member Data Documentation

◆ allocation_

VmaAllocation EngineCore::DataBuffer::allocation_ = VK_NULL_HANDLE
private

Definition at line 33 of file DataBuffer.h.

Referenced by DataBuffer(), map(), unmap(), and ~DataBuffer().

◆ allocator_

VmaAllocator EngineCore::DataBuffer::allocator_ = VK_NULL_HANDLE
private

Definition at line 30 of file DataBuffer.h.

Referenced by DataBuffer(), map(), unmap(), and ~DataBuffer().

◆ buffer

VkBuffer EngineCore::DataBuffer::buffer = nullptr
private

Definition at line 32 of file DataBuffer.h.

Referenced by copyTo(), DataBuffer(), getBuffer(), and ~DataBuffer().

◆ device

VkDevice EngineCore::DataBuffer::device = nullptr
private

Definition at line 28 of file DataBuffer.h.

Referenced by DataBuffer().

◆ physicalDevice

VkPhysicalDevice EngineCore::DataBuffer::physicalDevice = nullptr
private

Definition at line 29 of file DataBuffer.h.

Referenced by DataBuffer().

◆ size

VkDeviceSize EngineCore::DataBuffer::size = 0u
private

Definition at line 34 of file DataBuffer.h.

Referenced by copyTo(), and DataBuffer().


The documentation for this class was generated from the following files:
  • /home/magerbeton/Documents/gl3-vulkan/Engine/include/Engine/Core/DataBuffer.h
  • /home/magerbeton/Documents/gl3-vulkan/Engine/src/Engine/Core/DataBuffer.cpp