Share via


Texture3D.SetData Generic Method (T , Int32, Int32)

Sets 3D texture data, specifying a start index and number of elements.

Syntax

'Declaration
Public Sub SetData(Of T As ValueType) ( _
         data As T(), _
         startIndex As Integer, _
         elementCount As Integer _
)
public void SetData<T> (
         T[] data,
         int startIndex,
         int elementCount
) where T : ValueType
public:
generic<typename T> where T : ValueType
void SetData(
         T data[],
         int startIndex,
         int elementCount
)

Type Parameters

  • T
    The type of the elements in the array.

Parameters

  • data
    Type: T
    Array of data.
  • startIndex
    Type: Int32
    Index of the first element to set.
  • elementCount
    Type: Int32
    Number of elements to set.

Requirements

Namespace: Microsoft.Xna.Framework.Graphics

Assembly: Microsoft.Xna.Framework.Graphics (in microsoft.xna.framework.graphics.dll)

See Also

Reference

Texture3D Class
Texture3D Members
Microsoft.Xna.Framework.Graphics Namespace

Platforms

Windows Phone