|
Hymn to Beauty
C++ 3D Engine
|
Vulkan implementation of RawBuffer. More...
#include <VulkanBufferAllocator.hpp>
Public Member Functions | |
| VulkanRawBuffer (VulkanRenderer &vulkanRenderer, VkDevice device, VkPhysicalDevice physicalDevice, Buffer::BufferUsage bufferUsage, bool temporary, unsigned int size) | |
| Create new raw buffer used to satisfy allocations. More... | |
| ~VulkanRawBuffer () final | |
| Destructor. More... | |
| void | Write (uint32_t offset, uint32_t size, const void *data) final |
| Write data to buffer. More... | |
| VkBuffer | GetBuffer () const |
| Get the internal Vulkan buffer. More... | |
| VkDeviceMemory | GetDeviceMemory () const |
| Get the device memory. More... | |
Public Member Functions inherited from Video::RawBuffer | |
| virtual | ~RawBuffer () |
| Destructor. More... | |
Vulkan implementation of RawBuffer.
| Video::VulkanRawBuffer::VulkanRawBuffer | ( | VulkanRenderer & | vulkanRenderer, |
| VkDevice | device, | ||
| VkPhysicalDevice | physicalDevice, | ||
| Buffer::BufferUsage | bufferUsage, | ||
| bool | temporary, | ||
| unsigned int | size | ||
| ) |
Create new raw buffer used to satisfy allocations.
| vulkanRenderer | The Vulkan renderer. |
| device | The Vulkan device. |
| physicalDevice | The physical device. |
| bufferUsage | How the buffer will be used. |
| temporary | Whether the buffer is going to be used to satisfy temporary allocations. |
| size | The size of the buffer in bytes. |
|
final |
Destructor.
| VkBuffer Video::VulkanRawBuffer::GetBuffer | ( | ) | const |
Get the internal Vulkan buffer.
| VkDeviceMemory Video::VulkanRawBuffer::GetDeviceMemory | ( | ) | const |
Get the device memory.
|
finalvirtual |
Write data to buffer.
| offset | The offset (in bytes) into the buffer to write at. |
| size | The size of the data to write (in bytes). |
| data | The data to write. |
Implements Video::RawBuffer.