Dumps the contents of a buffer to a downloadable file for debugging purposes.
The type of buffer to dump
Gets the index of the active buffer layer for the specified buffer use type.
The type of buffer to get the active layer index of
The index of the active buffer layer
Gets the byte offset of the existing buffers for the specified buffer use type and index of the buffer layer.
The type of buffer to get the byte offset of
The index of the buffer layer to get the byte offset of
The byte offset of the existing buffers in bytes
Gets the count of the buffer layers for the specified buffer use type.
The type of buffer to get the count of layers of
The count of the buffer layers
Gets the sizes of the buffers for the specified buffer use type.
The type of buffer to get the sizes of
The sizes of the buffers in bytes
Increments the count of the buffer layers for the specified buffer use type.
The type of buffer to increment the count of layers of
Prints memory usage statistics for all managed buffers to the console. Shows used bytes, total bytes, and usage percentage for each buffer type.
StaticcreateCreates a MemoryManager instance if it doesn't exist, or returns the existing instance. This method enforces the singleton pattern.
The maximum GPU data storage size in bytes
The MemoryManager singleton instance
Creates a buffer on-demand with custom size and alignment for a specific object.