|
Vulkan Schnee 0.0.1
High-performance rendering engine
|
#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 |
Definition at line 9 of file DataBuffer.h.
| 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().
| EngineCore::DataBuffer::~DataBuffer | ( | ) |
Definition at line 45 of file DataBuffer.cpp.
References allocation_, allocator_, and buffer.
| 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.
| VkBuffer EngineCore::DataBuffer::getBuffer | ( | ) | const |
Definition at line 101 of file DataBuffer.cpp.
References buffer.
Referenced by copyTo().
| void * EngineCore::DataBuffer::map | ( | ) | const |
Definition at line 79 of file DataBuffer.cpp.
References allocation_, and allocator_.
| void EngineCore::DataBuffer::unmap | ( | ) | const |
Definition at line 93 of file DataBuffer.cpp.
References allocation_, and allocator_.
|
private |
Definition at line 33 of file DataBuffer.h.
Referenced by DataBuffer(), map(), unmap(), and ~DataBuffer().
|
private |
Definition at line 30 of file DataBuffer.h.
Referenced by DataBuffer(), map(), unmap(), and ~DataBuffer().
|
private |
Definition at line 32 of file DataBuffer.h.
Referenced by copyTo(), DataBuffer(), getBuffer(), and ~DataBuffer().
|
private |
Definition at line 28 of file DataBuffer.h.
Referenced by DataBuffer().
|
private |
Definition at line 29 of file DataBuffer.h.
Referenced by DataBuffer().
|
private |
Definition at line 34 of file DataBuffer.h.
Referenced by copyTo(), and DataBuffer().