IDirect3DTexture9::GetLevelDesc method

Retrieves a level description of a texture resource.

Syntax


HRESULT GetLevelDesc(
  [in]  UINT            Level,
  [out] D3DSURFACE_DESC *pDesc
);

Parameters

Level [in]

Type: UINT

Identifies a level of the texture resource. This method returns a surface description for the level specified by this parameter.

pDesc [out]

Type: D3DSURFACE_DESC*

Pointer to a D3DSURFACE_DESC structure, describing the returned level.

Return value

Type: HRESULT

If the method succeeds, the return value is D3D_OK. D3DERR_INVALIDCALL is returned if one of the arguments is invalid.

Requirements

Header

D3D9.h

Library

D3D9.lib

See also

IDirect3DTexture9

 

 

Show: