Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IDirect3DBaseTexture9::GetLevelCount method

Returns the number of texture levels in a multilevel texture.

Syntax


DWORD GetLevelCount();

Parameters

This method has no parameters.

Return value

Type: DWORD

A DWORD value that indicates the number of texture levels in a multilevel texture.

Remarks

Warning  If you create a texture with D3DUSAGE_AUTOGENMIPMAP to make that texture automatically generate sublevels, GetLevelCount always returns 1 for the number of levels.
 

This method applies to the following interfaces, which inherit from IDirect3DBaseTexture9.

Requirements

Header

D3D9.h

Library

D3D9.lib

See also

IDirect3DBaseTexture9

 

 

Show:
© 2017 Microsoft