Microsoft DirectX 8.1 (C++)

IDirect3DTexture8::GetLevelDesc

Retrieves a level description of a texture resource.

HRESULT GetLevelDesc(
  UINT Level,
  D3DSURFACE_DESC* pDesc
);

Parameters

Level
[in] Identifies a level of the texture resource. This method returns a surface description for the level specified by this parameter.
pDesc
[out] Pointer to a D3DSURFACE_DESC structure, describing the returned level.

Return Values

If the method succeeds, the return value is D3D_OK.

D3DERR_INVALIDCALL is returned if one of the arguments is invalid.

Requirements

  Header: Declared in D3d8.h.
  Import Library: Use D3d8.lib.