1
没有人知道如何获得os x上的免费(!)vram吗?OS X上的免费VRam
我知道,你可以查询一个注册表项:
typeCode = IORegistryEntrySearchCFProperty(dspPort,kIOServicePlane,CFSTR(kIOFBMemorySizeKey),
kCFAllocatorDefault,
kIORegistryIterateRecursively | kIORegistryIterateParents);
但是这将返回所有VRAM,而不是免费的VRAM。在windows下,你可以使用directshow查询免费的VRAM
mDDrawResult = DirectDrawCreate(NULL, &mDDraw, NULL);
mDDrawResult = mDDraw->QueryInterface(IID_IDirectDraw2, (LPVOID *)&mDDraw2);
DDSCAPS ddscaps;
DWORD totalmem, freemem;
ddscaps.dwCaps = DDSCAPS_OFFSCREENPLAIN | DDSCAPS_VIDEOMEMORY;
mDDrawResult = mDDraw2->GetAvailableVidMem(&ddscaps, &totalmem, &freemem);
丑陋,但它的工作原理。任何人都知道osx的方式?
最佳 温迪
如何在适配器之间进行切换,就像在macbook上有2个一样? – 2014-03-24 00:48:10