Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


#ActualIrYoKu1

Posted 03 September 2013 - 01:25 PM

Hi,

 

I'm trying to use this code for getting the vendor ID:

    IDXGIDevice *dxgiDevice;
    V(device->QueryInterface(__uuidof(IDXGIDevice), (void **) &dxgiDevice));


    IDXGIAdapter *dxgiAdapter;
    V(dxgiDevice->GetAdapter(&dxgiAdapter));

    DXGI_ADAPTER_DESC adapterDesc;
    dxgiAdapter->GetDesc(&adapterDesc);

    SAFE_RELEASE(dxgiAdapter);
    SAFE_RELEASE(dxgiDevice);

    return adapterDesc.VendorId;
 
And is working well in most cases, but it's failing on my multi-GPU laptop. It always return the vendor ID of the integrated Intel GPU, even if the NVIDIA one is being currently used.
 
Someone knows where can be the problem?
 
Thanks!

#2IrYoKu1

Posted 03 September 2013 - 01:05 PM

Hi,

 

I'm trying to use this code for getting the vendor ID:

    IDXGIDevice *dxgiDevice;
    V(device->QueryInterface(__uuidof(IDXGIDevice), (void **) &dxgiDevice));


    IDXGIAdapter *dxgiAdapter;
    V(dxgiDevice->GetAdapter(&dxgiAdapter));

    DXGI_ADAPTER_DESC adapterDesc;
    dxgiAdapter->GetDesc(&adapterDesc);

    SAFE_RELEASE(dxgiAdapter);
    SAFE_RELEASE(dxgiDevice);

    return adapterDesc.VendorId;
 
And is working well in most cases, but it's failing on my multi-GPU laptop. It always return the vendor ID of the integrated Intel GPU, even if the NVIDIA one is being currently used.
 
Someone knows where can be the problem?
 
Thanks!

#1IrYoKu1

Posted 03 September 2013 - 12:36 PM

Hi,

 

I'm trying to use this code for getting the vendor ID:

    IDXGIDevice *dxgiDevice;
    V(device->QueryInterface(__uuidof(IDXGIDevice), (void **) &dxgiDevice));


    IDXGIAdapter *dxgiAdapter;
    V(dxgiDevice->GetAdapter(&dxgiAdapter));

    DXGI_ADAPTER_DESC adapterDesc;
    dxgiAdapter->GetDesc(&adapterDesc);

    SAFE_RELEASE(dxgiAdapter);
    SAFE_RELEASE(dxgiDevice);

    return adapterDesc.VendorId;
 
And is working well in most cases, but it's failing on my multi-GPU laptop. It always return the vendor ID of the integrated Intel GPU, even if the NVIDIA one is being currently used.
 
Someone knows where can be the problem?
 
Thanks!

PARTNERS