#include <ObjectBufferPool.hpp>
◆ BufferArray
◆ VertexBufferPool()
C3D_API castor3d::VertexBufferPool::VertexBufferPool |
( |
RenderDevice const & |
device, |
|
|
castor::String |
debugName |
|
) |
| |
|
explicit |
Constructor.
- Parameters
-
[in] | device | The GPU device. |
[in] | debugName | The debug name. |
◆ cleanup()
C3D_API void castor3d::VertexBufferPool::cleanup |
( |
| ) |
|
Cleans up all GPU buffers.
◆ getBuffer()
template<typename VertexT >
Retrieves a GPU buffer with the given size.
- Parameters
-
[in] | vertexCount | The wanted buffer element count. |
- Returns
- The GPU buffer.
◆ putBuffer()
Releases a GPU buffer.
- Parameters
-
[in] | bufferOffset | The buffer offset to release. |
◆ upload()
C3D_API void castor3d::VertexBufferPool::upload |
( |
ashes::CommandBuffer const & |
cb | ) |
|
Uploads all GPU buffers 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: