Where is QueryInterface()

  • Thread starter Thread starter Gavin..Williams
  • Start date Start date
G

Gavin..Williams

Guest
Hi,


In Kenny Kerr's article Graphics and Animation there are a number of issues with his code.

check() // he uses, where is this ?
check_hresult() // I use, is this ok



set(direct3dDevice), // he uses, where is set() ?
&direct3dDevice, // I use this, is this ok?


ComPtr<IDXGIDevice3> dxgiDevice = direct3dDevice.As<IDXGIDevice3>(); // he uses this, but it would be an error
dxgiDevice = direct3dDevice.As<IDXGIDevice3>; // I use this, is this ok?


check(D2D1CreateDevice(get(dxgiDevice), properties, set(direct2dDevice))); // get() is not available.
winrt::check_hresult(D2D1CreateDevice(dxgiDevice.Get(), properties, &direct2dDevice)); // Is this OK?



And finally a blocking issue ...


check(compositor->QueryInterface(set(compositorInterop))); // QueryInterface() isn't available.

I can't work out anything that even looks like an alternative to this.

Continue reading...
 
Back
Top