Add the ability to provide a native directx texture handle as an image source.
Open
API suggestion
- Dominant language
- C#
- Stars
- 7.7k
- Forks
- 1.3k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 61
Description
WPF provides D3DImage for interoperability with native code / DirectX.
But D3Dimage are meant for dynamic content rendering and according to its documentation, should be used sparingly.
In my case, I need to load textures for processing in native code, but also display them to the user via a WPF based UI.
The current Implementation forces me to load the texture twice: once via native code and once via WPF ImageSource API.
This is very inefficient, especially for application that loads large amounts of images.
An API such as TextureImageSource that accepts a native handle to a DXGI shared handle is needed to avoid this.
Contributor guide
Assessment
This issue has not been assessed yet.