Mount Fuji Engine  0.8b
MF_API void* MFRenderer_AllocateScratchMemory ( size_t  bytes,
size_t  alignment = 16 
)

Allocates memory from the frame scratch buffer.

Parameters
bytesNumber of bytes to allocate.
alignmentAlignment of the allocation.
Returns
A pointer to a block of memory allocated from the frame scratch buffer.
See Also
MFRenderer_AllocateCommandBufferMemory(), MFRenderer_GetMemoryStats()
Remarks
Memory allocated in the frame scratch buffer will persist until the end of the current frame.