#include <UniformBufferPool.hpp>
◆ BufferArray
◆ UniformBufferPool()
C3D_API castor3d::UniformBufferPool::UniformBufferPool |
( |
RenderDevice const & |
device, |
|
|
castor::String |
debugName |
|
) |
| |
Constructor.
- Parameters
-
[in] | device | The GPU device. |
[in] | debugName | The buffer debug name. |
◆ cleanup()
C3D_API void castor3d::UniformBufferPool::cleanup |
( |
| ) |
|
Cleans up all GPU buffers.
◆ getBuffer()
template<typename DataT >
Retrieves a uniform buffer.
- Parameters
-
[in] | flags | The buffer memory flags. |
- Returns
- The uniform buffer.
◆ getBufferCount()
C3D_API uint32_t castor3d::UniformBufferPool::getBufferCount |
( |
| ) |
const |
- Returns
- The pool buffers count.
◆ putBuffer()
template<typename DataT >
Releases a GPU buffer.
- Parameters
-
[in] | bufferOffset | The buffer offset to release. |
◆ upload()
C3D_API void castor3d::UniformBufferPool::upload |
( |
ashes::CommandBuffer const & |
cb | ) |
const |
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: