2

我最近一直在为一个新项目做这样的研究,结果比开始之前更加困惑。我知道已经完成了类似的问题,但我似乎找不到任何关于我需要做什么的好信息。我希望这里的人能够提供一些建议。

我需要将 DirectX 嵌入到具有现代 Windows UI(工具栏、菜单、功能区,如果可能)的 .NET 应用程序中。我已经在 XNA 中对应用程序的 DirectX 部分进行了原型验证,以进行概念验证,但我不需要坚持下去,重写不是问题。利用 WPF 的 UI 优势会很好,但 .NET 中的任何东西都是一种选择(WinForms 等)。

该应用程序不会做任何非常复杂的事情:

- It loads of a bitmap image into a texture (or a few textures as the image is often quite large)
- Renders to off screen target (applying a pixel shader based on another texture) and gets the result back as a texture
- Renders to the window with another pixel shader applied
- Pan and zoom of resulting image

问题是我所有的在线研究都打折选项,但没有提出替代方案。例如,我读过:

- Managed DirectX in .NET is now unsupported
- Embedded my XNA application in Winforms or WPF isn't recommended
- WPF supports pixel shaders but doesn't seem to get much love for performance

将 DirectX 嵌入现代 Windows 应用程序(如果存在的话)的标准是什么?我们不是唯一想在 .NET 中这样做的人。

人们会推荐什么?

4

1 回答 1

1

有两个库会有所帮助:

两者都非常完整,还有一些带有 WPF 互操作的示例。

于 2012-09-25T14:17:55.897 回答