#include <ObjectBufferPool.hpp>
|
| OwnedBy (RenderSystem &owner) |
| Constructor.
|
|
◆ BufferArray
◆ ObjectBufferPool()
Constructor.
- Parameters
-
[in] | device | The GPU device. |
[in] | debugName | The debug name. |
◆ cleanup()
C3D_API void castor3d::ObjectBufferPool::cleanup |
( |
| ) |
|
Cleans up all GPU buffers.
◆ getBuffer() [1/2]
Retrieves a GPU buffer with the given size.
- Parameters
-
[in] | vertexCount | The wanted vertex count. |
[in] | indexBuffer | The index buffer to link to the result. |
[in] | components | The components for which the result will have allocated buffers. |
- Returns
- The GPU buffer.
◆ getBuffer() [2/2]
Retrieves a GPU buffer with the given size.
- Parameters
-
[in] | vertexCount | The wanted vertex count. |
[in] | indexCount | The wanted index count. |
[in] | meshletCount | The wanted meshlet count. |
[in] | components | The components for which the result will have allocated buffers. |
- Returns
- The GPU buffer.
◆ getBuffers()
C3D_API ModelBuffers const & castor3d::ObjectBufferPool::getBuffers |
( |
ashes::BufferBase const & | buffer | ) |
|
- Parameters
-
[in] | buffer | The positions buffer. |
- Returns
- The model buffers for the given positions buffer.
◆ getIndexBuffer()
C3D_API ashes::BufferBase const & castor3d::ObjectBufferPool::getIndexBuffer |
( |
ashes::BufferBase const & | buffer | ) |
|
- Parameters
-
[in] | buffer | The positions buffer. |
- Returns
- The index buffer linked to the given positions buffer.
◆ putBuffer()
Releases a GPU buffer.
- Parameters
-
[in] | bufferOffset | The buffer offset to release. |
The documentation for this class was generated from the following file: