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
graphicsDeviceGraphicsDevicewidthintheightintdepthintmipMapboolformatSurfaceFormat
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
graphicsDeviceGraphicsDevicewidthintheightintdepthintmipMapboolformatSurfaceFormatrenderTargetbool
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
levelintMipmap level.
leftintPosition of the left side of the box on the x-axis.
topintPosition of the top of the box on the y-axis.
rightintPosition of the right side of the box on the x-axis.
bottomintPosition of the bottom of the box on the y-axis.
frontintPosition of the front of the box on the z-axis.
backintPosition of the back of the box on the z-axis.
dataT[]Array of data.
startIndexintIndex of the first element to get.
elementCountintNumber of elements to get.
Type Parameters
TThe 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
dataT[]Array of data.
Type Parameters
TThe 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
dataT[]Array of data.
startIndexintIndex of the first element to get.
elementCountintNumber of elements to get.
Type Parameters
TThe 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
levelintleftinttopintrightintbottomintfrontintbackintdataT[]startIndexintelementCountint
Type Parameters
T
SetData<T>(T[])
public void SetData<T>(T[] data) where T : struct
Parameters
dataT[]
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