#include <GpuBufferPool.hpp>
|
| OwnedBy (RenderSystem &owner) |
| Constructor.
|
|
◆ BufferArray
◆ GpuBufferPool()
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 | ) |
|
|
noexcept |
Releases a GPU buffer.
- Parameters
-
[in] | bufferOffset | The buffer offset to release. |
◆ upload()
Uploads all ready memory ranges to VRAM.
- Parameters
-
[in,out] | uploader | Receives the upload requests. |
The documentation for this class was generated from the following file: