Interface that represents a buffer.
More...
#include <Buffer.hpp>
|
| enum class | Status { Reset
, Changed
, Normal
} |
| |
|
| | Buffer (VkDeviceSize size, VkBufferUsageFlags usage, VkMemoryPropertyFlags properties, const void *data=nullptr) |
| |
|
void | MapMemory (void **data) const |
| |
|
void | UnmapMemory () const |
| |
|
VkDeviceSize | GetSize () const |
| |
|
const VkBuffer & | GetBuffer () const |
| |
|
const VkDeviceMemory & | GetBufferMemory () const |
| |
|
|
static uint32_t | FindMemoryType (uint32_t typeFilter, const VkMemoryPropertyFlags &requiredProperties) |
| |
|
static void | InsertBufferMemoryBarrier (const CommandBuffer &commandBuffer, const VkBuffer &buffer, VkAccessFlags srcAccessMask, VkAccessFlags dstAccessMask, VkPipelineStageFlags srcStageMask, VkPipelineStageFlags dstStageMask, VkDeviceSize offset=0, VkDeviceSize size=VK_WHOLE_SIZE) |
| |
|
|
VkDeviceSize | m_Size |
| |
|
VkBuffer | m_Buffer = VK_NULL_HANDLE |
| |
|
VkDeviceMemory | m_BufferMemory = VK_NULL_HANDLE |
| |
Interface that represents a buffer.
◆ Buffer()
| PixelBullet::Buffer::Buffer |
( |
VkDeviceSize | size, |
|
|
VkBufferUsageFlags | usage, |
|
|
VkMemoryPropertyFlags | properties, |
|
|
const void * | data = nullptr ) |
Creates a new buffer with optional data.
- Parameters
-
| size | Size of the buffer in bytes. |
| usage | Usage flag bitmask for the buffer (i.e. index, vertex, uniform buffer). |
| properties | Memory properties for this buffer (i.e. device local, host visible, coherent). |
| data | Pointer to the data that should be copied to the buffer after creation (optional, if not set, no data is copied over). |
The documentation for this class was generated from the following files:
- engine/src/PixelBullet/Graphics/Buffers/Buffer.hpp
- engine/src/PixelBullet/Graphics/Buffers/Buffer.cpp