Partager via


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

Retrieves a level description of a texture resource.

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 the texture resource. This method returns a surface description for the level specified by this parameter.

Return Value

Microsoft.DirectX.Direct3D.SurfaceDescription
A SurfaceDescription structure that describes the returned level.

Remarks

Exceptions

InvalidCallException

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