Export (0) Print
Expand All

Texture3D Constructor

XNA Game Studio 4.0
Creates a new instance of this object.

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

public Texture3D (
         GraphicsDevice graphicsDevice,
         int width,
         int height,
         int depth,
         bool mipMap,
         SurfaceFormat format
)

Parameters

graphicsDevice
A device.
width
Texture width.
height
Texture height.
depth
Texture depth.
mipMap
[MarshalAsAttribute(U1)] True to generate a full mipmap chain; false otherwise.
format
Data format.

Exception typeCondition
NotSupportedException One or more of the following is true:
  • The profile does not support MaxVolumeExtent of 0.
  • The profile does not support the requested format.
  • The profile supports a maximum texture size of 2048.
  • The profile supports a maximum texture aspect ratio of 2048.
  • The profile requires texture size to be a power of two.

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone 7

Community Additions

ADD
Show:
© 2014 Microsoft