K
K
KiTiger2015-09-21 11:51:34
C++ / C#
KiTiger, 2015-09-21 11:51:34

How to use a secondary video adapter in Direct3D?

Hello!
I can not figure out how to specify a secondary adapter (second video card) in Direct3D (Version 9)?
It seems that if we specify D3DADAPTER_DEFAULT, then it points to the primary video adapter,
but how to point to the secondary one?
I have a laptop, the first graphics card is Intel HD Graphics and the second is AMD Radeon, and when I start my application, only the first one works.

d3d9->CreateDevice(
               D3DADAPTER_DEFAULT,  // <-??????
  deviceType,       
    hwnd,               
    vp,                 
      &d3dpp,            
      device);

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
AxisPod, 2015-09-21
@AxisPod

In 9k, apparently using https://msdn.microsoft.com/en-us/library/windows/d...
where Adapter handles to sort through until it starts to swear.
At 11, they somehow made it easier.

A
AtomKrieg, 2015-09-22
@AtomKrieg

#define D3DADAPTER_DEFAULT 0
Secondary respectively 1
IDirect3D::GetAdapterCount gives you an interval of 0 to N-1 number of video cards. But in general they write that the second video card is not always detected (for example, intel integrated video cards)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question