Add support for using managed method thunks on dotnet7 in all cases

This commit is contained in:
Wojciech Figat
2023-01-12 15:14:43 +01:00
parent 3df10d1d0a
commit daa92db25c
4 changed files with 175 additions and 91 deletions

View File

@@ -1342,7 +1342,7 @@ namespace Flax.Build.Bindings
// If platform supports JITed code execution then use method thunk, otherwise fallback to generic mono_runtime_invoke
var returnType = functionInfo.ReturnType;
var useThunk = false; //buildData.Platform.HasDynamicCodeExecutionSupport; // TODO: fix marshaing some types when using thunks on dotnet7
var useThunk = buildData.Platform.HasDynamicCodeExecutionSupport;
if (useThunk)
{
// Convert parameters into managed format as boxed values