locked
How to convert Microsoft::WRL::ComPtr<ID3D11Device> into ID3D11Device* ? (C++/CX app win 8 )

    Question

  • How to convert Microsoft::WRL::ComPtr<ID3D11Device> into ID3D11Device*  ? (C++/CX app win 8 )
    Because I want to save DirectX image by

    CaptureTexture( ID3D11Device* pDevice, ID3D11DeviceContext* pContext, ID3D11Resource* pSource, ScratchImage& result ).

    http://directxtex.codeplex.com/wikipage?title=Direct3D%2011%20Helper%20Functions&referringTitle=DirectXTex

    Below my variables :
      Microsoft::WRL::ComPtr<ID3D11Device>    m_d3dDevice;
      Microsoft::WRL::ComPtr<ID3D11DeviceContext>   m_d3dContext;
      Microsoft::WRL::ComPtr<ID3D11Texture2D>    depthStencil;  

    Monday, January 27, 2014 7:19 AM

Answers

All replies