How do I pass a handle of DXGI shared resource to

2019-09-19 09:11发布

问题:

https://msdn.microsoft.com/en-us/library/windows/desktop/bb174562(v=vs.85).aspx

According to the documentation of IDXGIResource::GetSharedHandle, I should be able to "marshal this handle to another process to share a resource with a device in another process".

But it's not clear how to pass this handle. Can I just pass the value of this handle to another process? Or do I need some specific method?

Thanks!

回答1:

Yes, you can pass this handle directly to another process and access it via OpenSharedResource function.



标签: directx dxgi