Texture exchange between direct3d and opengl?

I know that mixing OpenGL and DirectX is not recommended, but I'm trying to build a bridge between two different applications using a separate graphical API: s, and I hope that there is a way to share data, especially textures.

I have a texture that is created in Direct3D as follows:

d3_device-> CreateTexture(width, height,
  1, D3DUSAGE_RENDERTARGET, D3DFMT_A8R8G8B8, D3DPOOL_DEFAULT,
  &texture, NULL);

Is it possible to use this texture from OpenGL without going through system memory?

+3
source share
4 answers

No.

Think about it how to share images in Photoshop and another image viewer. For these two applications, you will need a memory management library.

-2
source

. (. ), . :

1) nvidia 256 dirvers. . http://developer.download.nvidia.com/opengl/specs/WGL_NV_DX_interop.txt

2) DXGI Vista Windows 7. . msdn.microsoft.com/en-us/library/ee913554.aspx

, , - , . .


[ , . Windows (Vista 7) ( GDI, Direct3D OpenGL). , OpenGL Windows. , , ... , .]

+8

, . .

DirectX OpenGL.

: , , , ( ) .

, - , , , .

0

, , .

0

Source: https://habr.com/ru/post/1720688/


All Articles