Class Texture3D
public class Texture3D : Texture, IDisposable
- Inheritance
-
Texture3D
- Implements
- Inherited Members
Constructors
Texture3D(GraphicsDevice, int, int, int, bool, SurfaceFormat)
public Texture3D(GraphicsDevice graphicsDevice, int width, int height, int depth, bool mipMap, SurfaceFormat format)
Parameters
graphicsDevice
GraphicsDevicewidth
intheight
intdepth
intmipMap
boolformat
SurfaceFormat
Texture3D(GraphicsDevice, int, int, int, bool, SurfaceFormat, bool)
protected Texture3D(GraphicsDevice graphicsDevice, int width, int height, int depth, bool mipMap, SurfaceFormat format, bool renderTarget)
Parameters
graphicsDevice
GraphicsDevicewidth
intheight
intdepth
intmipMap
boolformat
SurfaceFormatrenderTarget
bool
Properties
Depth
public int Depth { get; }
Property Value
Height
public int Height { get; }
Property Value
Width
public int Width { get; }
Property Value
Methods
GetData<T>(int, int, int, int, int, int, int, T[], int, int)
Gets a copy of 3D texture data, specifying a mipmap level, source box, start index, and number of elements.
public void GetData<T>(int level, int left, int top, int right, int bottom, int front, int back, T[] data, int startIndex, int elementCount) where T : struct
Parameters
level
intMipmap level.
left
intPosition of the left side of the box on the x-axis.
top
intPosition of the top of the box on the y-axis.
right
intPosition of the right side of the box on the x-axis.
bottom
intPosition of the bottom of the box on the y-axis.
front
intPosition of the front of the box on the z-axis.
back
intPosition of the back of the box on the z-axis.
data
T[]Array of data.
startIndex
intIndex of the first element to get.
elementCount
intNumber of elements to get.
Type Parameters
T
The type of the elements in the array.
GetData<T>(T[])
Gets a copy of 3D texture data.
public void GetData<T>(T[] data) where T : struct
Parameters
data
T[]Array of data.
Type Parameters
T
The type of the elements in the array.
GetData<T>(T[], int, int)
Gets a copy of 3D texture data, specifying a start index and number of elements.
public void GetData<T>(T[] data, int startIndex, int elementCount) where T : struct
Parameters
data
T[]Array of data.
startIndex
intIndex of the first element to get.
elementCount
intNumber of elements to get.
Type Parameters
T
The type of the elements in the array.
SetData<T>(int, int, int, int, int, int, int, T[], int, int)
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 : struct
Parameters
level
intleft
inttop
intright
intbottom
intfront
intback
intdata
T[]startIndex
intelementCount
int
Type Parameters
T
SetData<T>(T[])
public void SetData<T>(T[] data) where T : struct
Parameters
data
T[]
Type Parameters
T
SetData<T>(T[], int, int)
public void SetData<T>(T[] data, int startIndex, int elementCount) where T : struct
Parameters
Type Parameters
T