What's the best way to share a texture/image between two context with out context sharing?

前端 未结 3 1905
鱼传尺愫
鱼传尺愫 2021-01-25 06:15

What I want to do is to get the render result from one context, and do some further rendering in another context which do not shared with the previous one.

The only meth

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-25 06:44

    There are also AMD extensions which might be of some relevance to this qeustion: WGL_AMD_gpu_association and GLX_AMD_gpu_association:

    While this extension's focus is assigning GL context to specific GPUs and efficiently copying data between GPUs, it might also be useful for two contexts on the same GPU:

    To provide an accelerated path for blitting data from one context to another, the new blit function blitContextFramebufferAMD has been added.

    These extensions and also some synchronization techniques for using them are covered in somewhat more detail in this AMD whitepaper.

提交回复
热议问题