Microsoft DirectX 9.0 SDK Update (October 2004)

BaseTexture.LevelOfDetail Property

Language:

Note: This documentation is preliminary and is subject to change.

Retrieves or sets the most detailed level of detail (LOD) for a managed texture.

Definition

Visual Basic .NET Public Property LevelOfDetail As Integer
C# public int LevelOfDetail { get; set; }
Managed C++ public: __property int get_LevelOfDetail();
public: __property void set_LevelOfDetail(int);
JScript .NET public function get LevelOfDetail() : int
public function set LevelOfDetail(int);

Property Value

System.Int32 . Most detailed LOD value to set in the chain.

This property is read/write. 

Remarks

This property returns 0 on nonmanaged textures.

Setting LevelOfDetail communicates to the Microsoft® Direct3D® texture manager the most detailed mipmap in the chain that should be loaded into local video memory. For example, in a five-level mipmap chain, setting LevelOfDetail to 2 indicates that the texture manager should load only mipmap levels 2 through 4 into local video memory at any given time.

More specifically, if the texture was created with the dimensions of 256x256, setting the most detailed level to 0 indicates that 256x256 is the largest mipmap available, setting the most detailed level to 1 indicates that 128x128 is the largest mipmap available, and so on, up to the most detailed mip level (the smallest texture size) for the chain.

Applies To

CubeTexture, Texture, VolumeTexture

See Also


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center