Microsoft DirectX 8.1 (Visual Basic)

Direct3DTexture8.GetLevelDesc

Retrieves a level description of a texture resource.

object.GetLevelDesc( _ 
    Level As Long, _ 
    Desc As D3DSURFACE_DESC)

Parts

object
Object expression that resolves to a Direct3DTexture8 object.
Level
Identifies a level of the texture resource. This method returns a surface description for the level specified by this parameter.
Desc
A D3DSURFACE_DESC type, describing the returned mipmap.

Error Codes

If the method fails, an error is raised and Err.Number can be set to D3DERR_INVALIDCALL if one or more of the parameters are invalid.

For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.