dotnet / dotnet/wpf

Add the ability to render a XAML tree to a direct3d texture (offscreen rendering)

Open
#144 7 comments 12 reactions 0 assignees View on GitHub
API suggestion
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

Currently WPF offers the ability to render a xaml tree to a bitmap via RenderTargetBitmap.
Yet this API forces the client to do a copy of the render target to system memory (and back).
It would be much better if it would be possible to gain access the Direct3D9 render target.

There could be various applications to this feature. 3D game overlays, Heads up displays etc.

Here are several discussions on this issue:
https://stackoverflow.com/questions/10376016/rendering-from-wpfs-internals-to-a-directx-application
[https://stackoverflow.com/questions/18881683/how-to-display-wpf-overlay-on-top-of-directx?noredirect=1&lq=1](url)
[https://stackoverflow.com/questions/52918039/is-it-technically-possible-to-render-a-wpf-xaml-element-to-a-direct3d-texture](url)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.