Vulkan implementation of Buffer.
More...
#include <VulkanBuffer.hpp>
Vulkan implementation of Buffer.
◆ VulkanBuffer()
Create new Vulkan buffer.
- Parameters
-
| bufferUsage | How the buffer will be used. |
| allocation | The allocation to encapsulate. |
◆ ~VulkanBuffer()
| Video::VulkanBuffer::~VulkanBuffer |
( |
| ) |
|
|
final |
◆ ClearReadMask()
| void Video::VulkanBuffer::ClearReadMask |
( |
| ) |
|
◆ GetBuffer()
| VkBuffer Video::VulkanBuffer::GetBuffer |
( |
| ) |
const |
Get the internal Vulkan buffer.
- Returns
- The internal Vulkan buffer.
◆ GetLastWriteStage()
| VkPipelineStageFlags Video::VulkanBuffer::GetLastWriteStage |
( |
| ) |
const |
Get the shader stage which last wrote to the buffer.
- Returns
- The last shader stage which wrote to the buffer (or 0 if none).
◆ GetOffset()
| uint32_t Video::VulkanBuffer::GetOffset |
( |
| ) |
const |
Get the offset into the raw buffer.
- Returns
- The offset into the raw buffer.
◆ GetReadMask()
| VkPipelineStageFlags Video::VulkanBuffer::GetReadMask |
( |
| ) |
const |
Get which pipeline stages have read the buffer since the last write.
- Returns
- A mask of all pipeline stages which have read the buffer.
◆ GetSize()
| unsigned int Video::VulkanBuffer::GetSize |
( |
| ) |
const |
|
finalvirtual |
Get the size of the buffer.
- Returns
- The size of the buffer in bytes.
Implements Video::Buffer.
◆ Reset()
Reset the buffer.
- Parameters
-
| bufferUsage | How the buffer will be used. |
| allocation | Allocation to back up buffer memory. |
Implements Video::Buffer.
◆ SetLastWriteStage()
| void Video::VulkanBuffer::SetLastWriteStage |
( |
VkPipelineStageFlags |
pipelineStage | ) |
|
Set which pipeline stage last wrote to the buffer.
- Parameters
-
| pipelineStage | The pipeline stage writing to the buffer. |
◆ SetReadMaskStage()
| void Video::VulkanBuffer::SetReadMaskStage |
( |
VkPipelineStageFlags |
pipelineStage | ) |
|
Set a pipeline stage having read the buffer since the last write.
- Parameters
-
| pipelineStage | The pipeline stage reading the buffer. |
The documentation for this class was generated from the following files: