virtualx-engine/modules/mono/editor
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
..
Godot.NET.Sdk C#: Re-introduce generic Godot Array and Dictionary 2022-08-22 03:36:52 +02:00
GodotTools C#: Replace P/Invoke with delegate pointers 2022-08-22 03:36:52 +02:00
script_templates C#: Re-introduce generic Godot Array and Dictionary 2022-08-22 03:36:52 +02:00
bindings_generator.cpp C#: Re-introduce generic Godot Array and Dictionary 2022-08-22 03:36:52 +02:00
bindings_generator.h C#: Add dedicated Variant struct, replacing System.Object 2022-08-22 03:36:52 +02:00
code_completion.cpp Rename shader parameter uniform setter/getter methods for consistency 2022-08-04 23:17:06 +02:00
code_completion.h Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
editor_internal_calls.cpp C#: Replace P/Invoke with delegate pointers 2022-08-22 03:36:52 +02:00
editor_internal_calls.h C#: Replace P/Invoke with delegate pointers 2022-08-22 03:36:52 +02:00