user541686
user541686

Reputation: 210352

How to select a the GPU with Direct2D's D2D1CreateFactory()?

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?

Upvotes: 2

Views: 823

Answers (1)

CodeAngry
CodeAngry

Reputation: 12985

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

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

Upvotes: 2

Related Questions