Home -> ITextureBuffer -> MipmapLevelDimensions

Description

The MipmapLevelDimensions method returns the dimensions of a specific mipmap level that was created when the texture was allocated.

Each successive mipmap level is derived from the base level by reducing dimensions toward one pixel. Querying the allocated dimensions avoids duplicating that calculation and keeps code correct for one, two, three dimensional, cubemap, and array texture variants.

Usage

V1UInt32 MipmapLevelDimensions(int mipmapLevel) const;
V2UInt32 MipmapLevelDimensions(int mipmapLevel) const;
V3UInt32 MipmapLevelDimensions(int mipmapLevel) const;

Argument list

mipmapLevel [int]
The mipmap level to query.

Return value

[V1UInt32, V2UInt32, or V3UInt32]
The dimensions of the requested mipmap level. The return vector dimension matches the texture type.

See also