You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The key difference is that the code used to marshal the parameters is emitted during compile-time instead of run-time. This is faster but also opens the ability to do native AOT compilations.
I think d2dlib uses .NET 6, so this might not be relevant yet. But it might be for the next major LTS version.
The text was updated successfully, but these errors were encountered:
When using .NET 7, there is a new attribute that can be used to mark p/invokes:
https://learn.microsoft.com/en-us/dotnet/standard/native-interop/pinvoke-source-generation
The API is kinda similar:
becomes
The key difference is that the code used to marshal the parameters is emitted during compile-time instead of run-time. This is faster but also opens the ability to do native AOT compilations.
I think d2dlib uses .NET 6, so this might not be relevant yet. But it might be for the next major LTS version.
The text was updated successfully, but these errors were encountered: