This function writes the pixel data of a texture to a memory buffer.

This command is not available for Lua.


The Texture::GetMipmapSize() function should be used to make sure the memory buffer is big enough to accommodate the texture pixel data size.

This function is not available in Lua.