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.
转载于:https://blog.51cto.com/gzywyl/829927
本文介绍了IDirect3DDevice9::GetAvailableTextureMem函数的使用方法及注意事项。该函数返回可用于纹理的总内存,包括AGP。文章强调不应仅依赖该函数来分配资源,并建议创建资源时检查“内存不足”错误,必要时缩减纹理大小。

264

被折叠的 条评论
为什么被折叠?



