DirectX SDK

D3DDEVINFO_TEXTUREMANAGER

The D3DDEVINFO_TEXTUREMANAGER type contains information about the current state of the texture manager. This structure is used with the Direct3DDevice7.GetInfo method.

Type D3DDEVINFO_TEXTUREMANAGER
    bThrashing As Boolean     
    lLastPri As Long          
    lNumEvicts As Long        
    lNumTexturesUsed As Long  
    lNumUsedTexInVid As Long  
    lNumVidCreates As Long    
    lTotalBytes As Long       
    lTotalManaged As Long     
    lWorkingSet As Long       
    lWorkingSetBytes As Long  
End Type
 

Members

bThrashing
Thrashing status. This member is True if thrashing occurred during the last frame, or False otherwise.
lLastPri
Priority of last evicted texture.
lNumEvicts
Number of textures that were evicted during the last frame.
lNumTexturesUsed
Total number of textures used during the last frame.
lNumUsedTexInVid
Number of the video memory textures that were used during the last frame.
lNumVidCreates
Number of textures that were created in video memory during the last frame.
lTotalBytes
Total number of bytes allocated for managed textures.
lTotalManaged
Total number of managed textures.
lWorkingSet
Number of textures currently resident in video memory.
lWorkingSetBytes
Number of bytes currently allocated by textures resident in video memory.

Remarks

You can use the values in the lNumUsedTexInVid and lNumTexturesUsed to determine the percentage of textures used during the last frame were resident in video memory (local or non-local). The following code fragment shows how to make this computation:

' For this example, the d3dtminfo variable is a D3DDEVINFO_TEXTUREMANAGER
' structure that has been filled by a call to Direct3DDevice7.GetInfo.
Dim lHitRate As Long

' Retrieve the percentage of textures used that were in video memory.
lHitRate = (d3dtminfo.lNumUsedTexInVid * 100) / d3dtminfo.lNumTexturesUsed

See Also

Direct3DDevice7.GetInfo