Castor3D 0.16.0
Multiplatform 3D engine
|
#include <ObjectBufferPool.hpp>
Classes | |
struct | ModelBuffers |
Public Types | |
using | BufferArray = castor::Vector< ModelBuffers > |
Public Member Functions | |
C3D_API | VertexBufferPool (RenderDevice const &device, castor::String debugName) |
Constructor. | |
C3D_API void | cleanup () |
Cleans up all GPU buffers. | |
template<typename VertexT > | |
ObjectBufferOffset | getBuffer (VkDeviceSize vertexCount) |
Retrieves a GPU buffer with the given size. | |
C3D_API void | putBuffer (ObjectBufferOffset const &bufferOffset) noexcept |
Releases a GPU buffer. | |
Public Member Functions inherited from castor::OwnedBy< RenderSystem > | |
RenderSystem * | getOwner () const |
Additional Inherited Members | |
Protected Member Functions inherited from castor::OwnedBy< RenderSystem > | |
OwnedBy (RenderSystem &owner) | |
Constructor. | |
|
explicit |
Constructor.
[in] | device | The GPU device. |
[in] | debugName | The debug name. |
C3D_API void castor3d::VertexBufferPool::cleanup | ( | ) |
Cleans up all GPU buffers.
ObjectBufferOffset castor3d::VertexBufferPool::getBuffer | ( | VkDeviceSize | vertexCount | ) |
Retrieves a GPU buffer with the given size.
[in] | vertexCount | The wanted buffer element count. |
|
noexcept |
Releases a GPU buffer.
[in] | bufferOffset | The buffer offset to release. |