Commit Graph

118 Commits

Author SHA1 Message Date
Wojtek Figat
16159a9d98 Merge branch 'master' of https://github.com/Withaust/FlaxEngine into Withaust-master 2023-06-18 18:31:13 +02:00
Wiktor Kocielski
2485987901 Fix binding generation for interfaces 2023-06-18 10:48:46 +03:00
Wojtek Figat
21a3081b9f Fix 6b8d8b7913 from using filename into namespaces 2023-06-17 17:34:48 +02:00
Wojtek Figat
6b8d8b7913 Various fixes and improvements to auto-generated bindings usability 2023-06-12 14:35:11 +02:00
Wojtek Figat
979168e82c Refactor various Editor APIs to use auto-generated bindings instead of manual code 2023-06-12 14:34:07 +02:00
Wojtek Figat
c2cd3b64ff Improve generated bindings code usability in Editor 2023-05-24 23:50:51 +02:00
Wojtek Figat
48b18bf84e Fix regression from 7c0d1ab977 when using different access level to property getter/setter 2023-05-24 23:40:40 +02:00
Wojtek Figat
694980160b Merge remote-tracking branch 'origin/master' into 1.6
# Conflicts:
#	Source/Editor/CustomEditors/CustomEditorsUtil.cs
#	Source/Engine/Networking/NetworkReplicator.cpp
#	Source/Engine/Scripting/ManagedCLR/MUtils.cpp
#	Source/Tools/Flax.Build/Bindings/BindingsGenerator.Cpp.cs
2023-05-24 23:28:38 +02:00
Wojtek Figat
2881ca17a0 Fix bindings code instance object param obj to __obj to prevent name collisions 2023-05-22 18:06:08 +02:00
Wojtek Figat
ed70eb24c7 Fix using proper default value in scripting bindings for IntPtr value type 2023-05-19 13:49:15 +02:00
66de1e744a Use Unsafe.As casting in generated managed marshallers 2023-05-08 23:28:54 +03:00
Wojtek Figat
7c0d1ab977 Fix access level of generated type marshaller if target type is protected or private 2023-04-29 11:11:30 +02:00
Wojtek Figat
644eb35b97 Fix building bindings-only cross-platform with dotnet7 2023-04-18 20:25:06 +02:00
Wojtek Figat
024dd74ae1 Fix interface marshaller codegen for dotnet7 2023-04-17 22:34:00 +02:00
Wojtek Figat
9322a2006a Post merge fixes for new dotnet7 2023-04-17 14:04:08 +02:00
Wojtek Figat
58e5c988af Optimize Utils.InitStructure usage in generated bindings code if structure can be zero-inited 2023-04-03 13:52:15 +02:00
Wojtek Figat
a25eae5d10 Move dotnet7 native interop, wrappers and marshalers into FlaxEngine.Interop namespace 2023-03-28 13:20:18 +02:00
Wojtek Figat
52fb941237 Refactor Native Interop codebase with cleanup/rename 2023-03-28 12:53:06 +02:00
Wojtek Figat
ed13de2d5b Fix using managed arrays with Variant in dotnet7 2023-03-27 19:41:53 +02:00
Wojtek Figat
510fc443e8 Refactor CoreCLR runtime into explicit dotnet api instead of mocking mono api
Required by platforms that will use mono under the hood for .Net 7
New `USE_CSHARP` define for C# ability
Engine doesn't use `mono_*` apis directly but via MCore/MClass/MMethod/ apis
2023-03-27 17:29:42 +02:00
87e9046e41 Fix native to managed marshalling of System.Array 2023-02-19 20:33:12 +02:00
Wojtek Figat
30fa911832 Merge remote-tracking branch 'origin/master' into dotnet7
# Conflicts:
#	README.md
2023-02-16 09:54:22 +01:00
Wojtek Figat
46cfa01622 Add this to API_PARAM for static method extension of a type 2023-02-13 16:04:33 +01:00
Wojtek Figat
f5a37ec3b4 Final fix for full P/Invoke compatibility on Linux 2023-01-24 18:49:33 +01:00
Wojtek Figat
20c32ea6ed Impl progress on c++ name mangling on Clang for proper P/Invokes binding 2023-01-24 17:31:09 +01:00
Wojciech Figat
798b950046 Merge branch 'dotnet7' of https://github.com/GoaLitiuM/FlaxEngine into GoaLitiuM-dotnet7 2023-01-24 09:30:38 +01:00
Wojciech Figat
405ae519dd Refactor generated bindings P/Invoke to support name mangling for symbols 2023-01-23 18:41:12 +01:00
Wojciech Figat
25811ed6d4 Optimize bindings code generation via String Builder pooling 2023-01-23 13:22:43 +01:00
be720257ca Fix crash when marshalling generated managed interfaces
Marshaller returns a permanent handle, avoid releasing it during marshalling
2023-01-16 20:12:42 +02:00
Wojciech Figat
59ba9102a6 Merge branch 'dotnet7' of https://github.com/GoaLitiuM/FlaxEngine into GoaLitiuM-dotnet7 2023-01-12 15:15:40 +01:00
Wojciech Figat
eebc4951de Merge branch '1.5' into dotnet7
# Conflicts:
#	Source/Platforms/DotNet/NUnit/agents/net40/nunit-agent.exe
#	Source/Platforms/DotNet/NUnit/agents/net40/nunit.engine.api.dll
#	Source/Platforms/DotNet/NUnit/agents/net40/nunit.engine.core.dll
#	Source/Platforms/DotNet/NUnit/agents/net7.0/nunit.agent.addins
#	Source/Platforms/DotNet/NUnit/nunit.engine.api.dll
#	Source/Platforms/DotNet/NUnit/nunit.engine.core.dll
#	Source/Platforms/DotNet/NUnit/nunit.engine.dll
#	Source/Platforms/DotNet/NUnit/nunit3-console.exe
#	Source/Platforms/DotNet/NUnit/nunit3-console.exe.config
#	Source/Platforms/DotNet/NUnit/testcentric.engine.metadata.dll
#	Source/Tools/Flax.Build/Deps/Downloader.cs
#	Source/Tools/Flax.Stats/CodeFrame.cs
#	Source/Tools/Flax.Stats/CodeFrameNode.cs
#	Source/Tools/Flax.Stats/Flax.Stats.Build.cs
#	Source/Tools/Flax.Stats/Languages.cs
#	Source/Tools/Flax.Stats/Program.cs
#	Source/Tools/Flax.Stats/TaskType.cs
#	Source/Tools/Flax.Stats/Tools.cs
#	Source/Tools/FlaxEngine.Tests/TestEditorUtils.cs
2023-01-10 15:49:44 +01:00
Wojciech Figat
a7e428a21c Merge branch 'master' into 1.5
# Conflicts:
#	Content/Shaders/GI/DDGI.flax
#	Content/Shaders/GI/GlobalSurfaceAtlas.flax
#	Content/Shaders/TAA.flax
#	Content/Shaders/VolumetricFog.flax
#	Source/Editor/CustomEditors/Editors/ActorTagEditor.cs
#	Source/Engine/Core/Config/GraphicsSettings.cpp
#	Source/Engine/Engine/PostProcessEffect.cs
#	Source/Engine/Graphics/GPUResourcesCollection.cpp
#	Source/Engine/Graphics/GPUResourcesCollection.h
#	Source/Engine/Graphics/PostProcessBase.h
#	Source/FlaxEngine.Gen.cs
2023-01-10 15:37:55 +01:00
Wojciech Figat
9626e9bbb6 Update copyright year 2023-01-10 15:29:37 +01:00
7048281931 Hide AbstractWrappers in Editor 2023-01-09 15:20:24 +02:00
Wojciech Figat
dea307179f Merge branch 'dotnet7' of https://github.com/GoaLitiuM/FlaxEngine into GoaLitiuM-dotnet7
# Conflicts:
#	Source/Engine/Engine/NativeInterop.cs
2023-01-02 11:04:36 +01:00
Wojciech Figat
9acb597d5d Adjust scripting types visibility in editor 2023-01-02 10:36:24 +01:00
Wojciech Figat
00d960d61e Refactor abstract classes handling for scripting types creation (eg. Script or GPUResource) under dotnet7 2023-01-02 10:35:39 +01:00
8b80f73641 Implement ManagedHandle replacement for GCHandles
Allows for more controlled management of weak handles, increasing their lifetime for slightly longer than with GCHandles.
2022-12-30 22:14:48 +02:00
Wojciech Figat
28da925c52 Fix DisableRuntimeMarshalling attribute usage to be declared once per C# assembly 2022-12-29 14:11:22 +01:00
53de6d018b Return container types as return parameters 2022-12-27 19:02:40 +02:00
Wojciech Figat
d9042b3db2 Fix building various plugin projects with new dotnet7 2022-12-27 13:49:47 +01:00
Wojciech Figat
7440cb0963 Rename generated method parameters in bindings to prevent name collisions 2022-12-24 15:35:46 +01:00
48214f925b Fix wrong import name in generated plugin bindings 2022-12-24 01:13:56 +02:00
80c3056daf Fix errors when compiling plugins 2022-12-23 22:33:22 +02:00
22b4e25c02 Improve array allocations when marshalling method parameters 2022-12-22 19:54:58 +02:00
Wojciech Figat
75130fcca3 Fix using Function in scripting api to pass function pointer to native code when running in dotnet7 2022-12-22 11:50:29 +01:00
c8cc899128 Optimize allocations in method parameter marshalling and invocation 2022-12-21 00:40:38 +02:00
55747edaae Cleanup 2022-12-21 00:40:38 +02:00
fcd1366d26 Fix memory leaks caused by unreleased GCHandles 2022-12-02 00:06:32 +02:00
676d87129c Fix array count output parameter handling when returning arrays 2022-11-28 00:07:02 +02:00