SwapDeviceContextState and ID3D10Device RRS feed

  • Question

  • I'm trying to use the new ID3DDeviceContextState functionality in the D3D11.1 Developer Preview to switch between Direct3D 10 and 11 interfaces.

    I'm not sure if I missed something, but how do I get my hands on an ID3D10Device interface after activating a D3DDeviceContextState using SwapDeviceContextState?

    I tried calling QueryInterface using the ID3D11Device1 and ID3D11DeviceContext1 interfaces and also using IDGXISwapChain::GetDevice: Nothing returns a ID3D10Device.

    I know the D3D10 ContextState is active, because calling methods from the ID3D11DeviceContext all fail because they are "locked out".

    Am I doing it wrong or is this not completely implemented in the developer preview build?

    • Edited by kze13 Tuesday, December 6, 2011 11:27 PM missing linebreaks
    Tuesday, December 6, 2011 11:21 PM

All replies

  • You should be able to QI the IDirect3D10Device. What Feature Level do you have initialized? You might need to QI ID3D10Device1 unless you are using Feature Level 10_0.

    Wednesday, January 4, 2012 8:16 PM