BaseTexture.LevelOfDetail Property |
Language: |
Retrieves or sets the most detailed level of detail (LOD) for a managed texture.
Visual Basic Public Property LevelOfDetail As Integer C# public int LevelOfDetail { get; set; } C++ public:
property int LevelOfDetail {
int get();
void set(int value);
}JScript public function get LevelOfDetail() : int
public function set LevelOfDetail(int);
System.Int32
This property is read/write.
Most detailed LOD value to set in the chain.
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.
CubeTexture, Texture, VolumeTexture
Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center