Copy OpenGL texture from one context to another while contexts are in different process.

Started by
0 comments, last by pixelord 4 years, 1 month ago

Hi,

For some weird reason, I need to render a texture (Render to texture) in an openGL application and use that texture as in input to another openGL application. I have been trying to find a solution for that and first thing I found was Nvidia extension wglCopyImage SubDataNV and glxCopyImageSubDataNv. I managed to found an nvidia presentation that desscribe copying image data from srcContext to DestContext,

wglCopyImageSubDataNV(srcCtx, srcTex, GL_TEXTURE_2D,0, 0, 0, 0,
destCtx, destTex, GL_TEXTURE_2D, 0, 0, 0, 0,
width, height, 1); 

However, I am not if there are any ways to make ti work if the contexts are running in seperate processes. And if the context are in seperate porcess, how can I query or reference the context from a different process? Or is there any other ways to achieve what I am trying to do? This Nvidia extension looked locrative as it would allow us to avoid GPU readback and copy the data with GPU memory.

Thanks in advance,

M

This topic is closed to new replies.

Advertisement