godot/modules/mono/editor/GodotTools
Ignacio Roldán Etcheverry 2c180f62d9 C#: Replace P/Invoke with delegate pointers
- Moves interop functions to UnmanagedCallbacks struct that
  contains the function pointers and is passed to C#.

- Implements UnmanagedCallbacksGenerator, a C# source generator that
  generates the UnmanagedCallbacks struct in C# and the body for the
  NativeFuncs methods (their implementation just calls the function
  pointer in the UnmanagedCallbacks). The generated methods are needed
  because .NET pins byref parameters of native calls, even if they are
  'ref struct's, which don't need pinning. The generated methods use
  `Unsafe.AsPointer` so that we can benefit from byref parameters
  without suffering overhead of pinning.

Co-authored-by: Raul Santos <raulsntos@gmail.com>
2022-08-22 03:36:52 +02:00
..
GodotTools C#: Replace P/Invoke with delegate pointers 2022-08-22 03:36:52 +02:00
GodotTools.BuildLogger C#: Begin move to .NET Core 2022-08-22 03:35:59 +02:00
GodotTools.Core C#: Upgrade to .NET 6 (5.0 -> 6.0) 2022-08-22 03:36:51 +02:00
GodotTools.IdeMessaging Mono: Update Newtonsoft.Json to 13.0.1 2022-06-23 16:24:16 +02:00
GodotTools.IdeMessaging.CLI C#: Begin move to .NET Core 2022-08-22 03:35:59 +02:00
GodotTools.OpenVisualStudio C#: Begin move to .NET Core 2022-08-22 03:35:59 +02:00
GodotTools.ProjectEditor C#: Upgrade to .NET 6 (5.0 -> 6.0) 2022-08-22 03:36:51 +02:00
GodotTools.Shared C#: Upgrade to .NET 6 (5.0 -> 6.0) 2022-08-22 03:36:51 +02:00
.gitignore Add a simple C# .editorconfig 2021-07-23 17:04:53 -04:00
GodotTools.sln C#: Replace P/Invoke with delegate pointers 2022-08-22 03:36:52 +02:00