让您在Directx3D中轻松获取剩余显存

IDirect3DDevice9::GetAvailableTextureMem(VOID);

此函数msdn说明:
IDirect3DDevice9::GetAvailableTextureMem() returns the total available memory, including AGP. Allocating resources based on an assumption of how much video memory you have is not a great idea. long.yaowan.comFor example, what if the card is running under a Unified Memory Architecture (UMA) or is able to compress the textures? There might be more space available than you might have thought. You should create resources and check for 'out of memory' errors, then scale back on the textures. For example,mhfx.yaowan.com you could remove the top mip-levels of your textures.

你可能感兴趣的:(职场,休闲,Directx3D)