Scaleform::Render::MeshStagingBuffer
class MeshStagingBuffer;
MeshStagingBuffer acts as a short term cache that stores the generated meshes before they are instanced and copied into the Vertex/Index buffers. Typically the staging buffer will accumulate all of the meshes in the Batch before they are uploaded into the vertex buffers.
Meshes in the buffer can be pinned to ensure that they are not swapped out. There is a limit on the total size of the pinned items, which should correspond to the maximum total mesh size for the largest allowed batch in BatchProcessor.
PCs have a large mesh staging buffer; consoles, however, can get away with a smaller one since they can copy mesh data directly from the primitive instead.
Method |
Description |
Returns the size of the buffer for the cached meshes. | |
Initializes the buffer for cached meshes. | |
MeshStagingBuffer constructor. | |
Releases the meshes from the staging buffer. | |
Allocates buffer space for meshes and initializes it with the mesh. | |
Resets the mesh buffer, by removing the cached meshes from the buffer. | |
Returns the buffer set aside for the cached meshes. | |
Determines whether the mesh is in the MeshStagingBuffer. | |
Pins a mesh so that it cannot be swapped out by future Generate call. | |
Unpins the pinned meshes in the buffer. |
Render_MeshCache.h