Image::Map

Image::Map
virtual bool Map(ImageData* pdata, unsigned levelIndex = 0, unsigned levelCount = 0);
Description

Map maps texture contents to user memory and causes the specified mipmap level of the texture to be accessible in system memory. 

Map and Unmap are only available if image has ImageUse_MapLocal flag. If Map is used, user is still responsible for calling Update to notify render thread of changes that took place. All of the data planes of the specified level are mapped simultaneously.

Parameters
Parameters 
Description 
ImageData* pdata 
The destination image that receives the texture data. 
unsigned levelIndex = 0 
The first mip level of the texture that should be mapped (0 for the top level). 
unsigned levelCount = 0 
The number of mip levels to map (0 means all levels). 
Return Value

Returns true if the texture contents are mapped; false otherwise.