Share via


CubeTexture.GetLevelDescription(Int32) Method (Microsoft.DirectX.Direct3D)

Retrieves a description of one face of a specified cube texture level.

Definition

Visual Basic Public Function GetLevelDescription( _
    ByVal level As Integer _
) As SurfaceDescription
C# public SurfaceDescription GetLevelDescription(
    int level
);
C++ public:
SurfaceDescription GetLevelDescription(
    int level
);
JScript public function GetLevelDescription(
    level : int
) : SurfaceDescription;

Parameters

level System.Int32
Level of a mipmapped cube texture.

Return Value

Microsoft.DirectX.Direct3D.SurfaceDescription
A SurfaceDescription structure that describes one face of the specified cube texture level.

Remarks

The SurfaceDescription structure contains Height and Width members, which indicate the size of one face of the cube. To get the size of the entire cube, multiply the data by 6.

Exceptions

InvalidCallException

The method call is invalid. For example, a method's parameter might contain an invalid value.

See Also