how can i know if an amd graphic card is dedicated or not with d3d11(or dxgi)?

563 Views Asked by At

I try to use graphics card to do some heavy computation(direct compute), and I hope it only enabled with dedicated graphics card, since a integrated graphics card is too weak for my program. I got the following info by using DXGI:

typedef struct DXGI_ADAPTER_DESC {
  WCHAR  Description[128];
  UINT   VendorId;
  UINT   DeviceId;
  UINT   SubSysId;
  UINT   Revision;
  SIZE_T DedicatedVideoMemory;
  SIZE_T DedicatedSystemMemory;
  SIZE_T SharedSystemMemory;
  LUID   AdapterLuid;
} DXGI_ADAPTER_DESC;

For graphics card of NVidia and Intel, I can use VendorID to do that. But how can i know it is a dedicated graphics card or not for an AMD graphics card, since AMD produce both dGPU and iGPU.

0

There are 0 best solutions below