Texture3D.GetData Generic Method (T , Int32, Int32)
Gets a copy of the texture data, specifying the starting index and number of elements to copy.
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
Syntax
public void GetData<T> (
T[] data,
int startIndex,
int elementCount
) where T : ValueType
Type Parameters
- T
Type of value to return.
Parameters
- data
An array to fill with data. - startIndex
Index of the element in the array at which to start copying. - elementCount
The number of elements to copy.
Remarks
On Windows, GetData and SetData will fail if Texture3D.ResourceManagementMode is ResourceManagementMode.Manual and the format cannot be used as a render target.
See Also
Reference
Texture3D Class
Texture3D Members
Microsoft.Xna.Framework.Graphics Namespace
Platforms
Xbox 360, Windows XP SP2, Windows Vista