none
Sharing surface with ID2D1DCRenderTarget

    Question

  • I am trying to share a texture created in separate process with an app that has an old plugin system based on GDI, so I have only HDC to the viewport. I want to create IBitmap using CreateSharedBitmap however this function works only with surfaces created by CreateDxgiSurfaceRenderTarget  which apparently cannot be created using D2D1_RENDER_TARGET_USAGE_GDI_COMPATIBLE required for GDI rendering. I have seen an example http://xboxforums.create.msdn.com/forums/t/66208.aspx  to use SwapChain and share backBuffer but that only works for targets linked to HWND. How to share textures between D3X11 and ID2D1DCRenderTarget ?

    Tuesday, February 06, 2018 8:39 AM

Answers