My laptop has NVIDIA Optimus (so there's an Intel GPU).

However, I want to use the NVIDIA card for Direct2D to see if I can get better performance.
(I don't want to modify the NVIDIA settings, I want to select the adapter within the program itself.)

How can I do this though?

There is no option I can find in D2D1CreateFactory that allows me to select the device or adapter... it always seems to select the default GPU. How do I obtain a ID2D1Factory for a non-default GPU?

有帮助吗?

解决方案

You need to use D3D10CreateDevice and then interoperability between D2D and D3D.

Direct3D allows you to get picky with the device, D2D not... AFAIK.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top