Advertisement

Directx 12 : Sharing graphic memory between two processes!

Started by January 17, 2020 06:49 AM
2 comments, last by Enzio599 5 years ago

Hi guys...

i am trying to create two application. One application will render a texture off-screen and the second application will read it from graphic memory and render/present it on window.

my doubt is.. is it possible to share graphic memory in directx 12.

my named shared memory approach is causing comptr addref error...

i am using a comptr for 'id3d12resource' for texture data...

so how can we go on with such approach...

Look up GetSharedHandle and OpenSharedHandle. They let you create a resource in one process, get a handle to it, and then “open” that handle in a 2nd process to get a resource there that shares the same memory underneath.

Advertisement

https://docs.microsoft.com/en-gb/windows/win32/direct3d12/shared-heaps?redirectedfrom=MSDN

does the trick … thanks…

This topic is closed to new replies.

Advertisement