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.
Reads float values from the concatenated layers of a buffer usage.
This is intended for debugging tools. The returned array is a copy when the range spans buffer layers, and a view into the layer otherwise.
The buffer usage to read
Byte offset from the start of the first layer
Number of float values to read
The read values, or null when the range is outside the allocated buffers
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.