Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
smourier committed May 2, 2024
2 parents 6de791c + 130e99f commit fad2031
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ The easiest way to use this is reference the nuget package: https://www.nuget.or

Or you can pick the C# source files you want (among the 10000 .cs provided ...). It can be sometimes difficult because the dependencies between all these technologies can make extracting a small portion quite difficult (and they are one of the reasons why DirectN exists...). However this is still possible.

## AOT support
The code in this repository compatible with .NET Framework, marshalling provided by the CLR, older C# versions, etc., so it's not compatible with [Native AOT Deployment](https://learn.microsoft.com/en-us/dotnet/core/deploying/native-aot/?tabs=net8plus%2Cwindows).

However, a .NET 8+ project has been started here [DirectNAot](https://github.com/smourier/DirectNAot) which builds AOT-compatible DirectN code. This code will not be 100% source compatible with DirectN but the code generator is now provided as open source. Work is in progress, stay tuned!

## Same names and types than the native concepts!
DirectN allows you to port C/C++ code to C#, or to write C# code from scratch, probably more easily than with other existing interop libraries in this domain because one of its main objective is to use exactly the **same names and types than the native concepts** (interfaces, enums, structures, constants, methods, arguments, guids, etc.) . So you can read the official documentation, use existing C/C++ samples, and start coding with .NET right away.

Expand Down

0 comments on commit fad2031

Please sign in to comment.