我最近一直在研究一个新项目并且比我开始之前更加困惑。我知道已经对死亡做过类似的问题,但我似乎无法找到关于我需要做什么的任何好的信息。我希望这里有人可以提供一些建议。
我需要将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中执行此操作的人。
人们会推荐什么?