Is there a clean DirectX managed shell?

I currently need a cleanly managed DirectX wrapper for .NET. Although SlimDX is great, its use of unmanaged code makes it impossible to properly analyze dead code to merge it with your builds. With a clean managed shell, I could only include the parts that I use in my build, allowing very, very small binaries (my goal is to completely write 64k demos using .NET).

Is there such a thing, or am I going to get close to P / Invoke?

+3
source share
4 answers

There is no such thing, you need to leave your own. And you don’t have to worry about the size of your assemblies when you use P / Invoke - if anything, they will be much smaller than if you included their managed copies.

Depending on what you are doing (video? Audio? 3D?), DirectShow.NET is a fun place to start with these kinds of things, given that it is incomplete and no longer supported.

+1
source

You will have to go with P / Invoke and will probably be too slow (some P / Invoke data structures are very slow).

0
source

directx (MDX), microsoft directx sdk . , , ... , , .

0
source

I just found (exploring ways to use DirectX from managed code and WPF in particular) about SharpDX . This looks promising and does what you need; see, for example, the SharpDX Official Blog Entry .

But I did not even download it, so I can not say anything more than what is written on the links above.

0
source

Source: https://habr.com/ru/post/1740714/


All Articles