IDirect3DTexture9::GetLevelDesc method (d3d9helper.h)

Retrieves a level description of a texture resource.

Syntax

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

Parameters

[in] Level

Type: UINT

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

[out] pDesc

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

Requirement Value
Target Platform Windows
Header d3d9helper.h (include D3D9.h)
Library D3D9.lib

See also

IDirect3DTexture9