Share via


Texture3D Constructor

Creates a new instance of this object.

Syntax

'Declaration
Public Sub New ( _
         graphicsDevice As GraphicsDevice, _
         width As Integer, _
         height As Integer, _
         depth As Integer, _
         mipMap As Boolean, _
         format As SurfaceFormat _
)
public Texture3D (
         GraphicsDevice graphicsDevice,
         int width,
         int height,
         int depth,
         bool mipMap,
         SurfaceFormat format
)
public:
Texture3D(
         GraphicsDevice graphicsDevice,
         int width,
         int height,
         int depth,
         bool mipMap,
         SurfaceFormat format
)

Parameters

Exceptions

Exception type Condition
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.

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