IDirect3DDevice9::GetAvailableTextureMem()

This is a discussion on IDirect3DDevice9::GetAvailableTextureMem() within the Game Programming forums, part of the General Programming Boards category; Has anyone used this function or know any more information about it other than is what is available in the ...

  1. #1
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,596

    IDirect3DDevice9::GetAvailableTextureMem()

    Has anyone used this function or know any more information about it other than is what is available in the SDK?

    I've been using it to report video memory consumption but the original numbers prior to any allocations just don't match up with the manuf. numbers for the card. Does this function also include the PCI and AGP 'aperture' sizes and thus counts that as available video memory?

  2. #2
    'Allo, 'Allo, Allo
    Join Date
    Apr 2008
    Posts
    611
    Apparently it does, and the workaround is to use DirectDraw to probe for it instead.

    You can also get the total video memory from the Win32_VideoController class in WMI. I think that's quite a lot of native C++ for one piece of info though, especially one that's dependent on WDDM drivers in Vista+.
    Last edited by adeyblue; 08-11-2010 at 03:30 PM.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21