Share via


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

Sets 3D texture data, specifying a mipmap level, source box, start index, and number of elements.

Syntax

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

Type Parameters

  • T
    The type of the elements in the array.

Parameters

  • level
    Type: Int32
    Mipmap level.
  • left
    Type: Int32
    X coordinate of the left face of the 3D bounding cube.
  • top
    Type: Int32
    Y coordinate of the top face of the 3D bounding cube.
  • right
    Type: Int32
    X coordinate of the right face of the 3D bounding cube.
  • bottom
    Type: Int32
    Y coordinate of the bottom face of the 3D bounding cube.
  • front
    Type: Int32
    Z coordinate of the front face of the 3D bounding cube.
  • back
    Type: Int32
    Z coordinate of the back face of the 3D bounding cube.
  • 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