#include <GpuBufferPool.hpp>
◆ BufferArray
◆ GpuBufferPool()
C3D_API castor3d::GpuBufferPool::GpuBufferPool |
( |
RenderDevice const & |
device, |
|
|
castor::String |
debugName |
|
) |
| |
Constructor.
- Parameters
-
[in] | device | The GPU device. |
[in] | debugName | The debug name. |
◆ cleanup()
C3D_API void castor3d::GpuBufferPool::cleanup |
( |
| ) |
|
Cleans up all GPU buffers.
◆ getBuffer()
template<typename DataT >
GpuBufferOffsetT< DataT > castor3d::GpuBufferPool::getBuffer |
( |
VkBufferUsageFlags |
target, |
|
|
VkDeviceSize |
count, |
|
|
VkMemoryPropertyFlags |
flags |
|
) |
| |
Retrieves a GPU buffer with the given size.
- Parameters
-
[in] | target | The buffer type. |
[in] | count | The wanted buffer element count. |
[in] | flags | The buffer memory flags. |
- Returns
- The GPU buffer.
◆ putBuffer()
template<typename DataT >
void castor3d::GpuBufferPool::putBuffer |
( |
GpuBufferOffsetT< DataT > const & |
bufferOffset | ) |
|
Releases a GPU buffer.
- Parameters
-
[in] | bufferOffset | The buffer offset to release. |
◆ upload()
C3D_API void castor3d::GpuBufferPool::upload |
( |
ashes::CommandBuffer const & |
cb | ) |
|
Uploads all ready memory ranges to VRAM.
- Parameters
-
[in] | cb | The command buffer on which transfer commands are recorded. |
The documentation for this class was generated from the following file: