Skip to content

[2.0] New Interop #262

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 71 commits into from
Aug 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
2802bd2
Use Ultz.Bcl.Half, preliminary Silk.NET.Core work (basically final now)
Perksey Aug 1, 2020
313b3a7
Move the entire codebase to the new core
Perksey Aug 1, 2020
5cf0c80
Move the entire codebase to partial methods
Perksey Aug 1, 2020
b3dcca5
Merge branch '2.0' into feature/new-interop
Perksey Aug 2, 2020
ba8cbab
Fix partial keyword not being in the right place in method declarations
Perksey Aug 2, 2020
49ca7d3
Return Type Marshalling
HurricanKai Aug 3, 2020
df2e1ff
Parameter Handling
HurricanKai Aug 3, 2020
ea2afd0
Handle Parameters
HurricanKai Aug 3, 2020
913ce51
Rewrite Native API Generator to be extensible
HurricanKai Aug 12, 2020
6a2bf24
Bool Return Marshaller
HurricanKai Aug 12, 2020
e584d39
Delegate Return Marshaller
HurricanKai Aug 12, 2020
6922408
Bool Parameter Marshaller
HurricanKai Aug 12, 2020
42e64f7
Delegate Parameter Marshaller
HurricanKai Aug 12, 2020
442de99
Rework API Generator + Bool Marshaller
HurricanKai Aug 14, 2020
0c28555
Move Bool Marshaller to it's own File
HurricanKai Aug 14, 2020
1bec925
Move MarshalContext to new file
HurricanKai Aug 14, 2020
a7aaf8d
Move PinMiddleware to new file
HurricanKai Aug 14, 2020
846b3fb
Move SyntaxReceiver to new file
HurricanKai Aug 14, 2020
222091b
Move Middleware to new file
HurricanKai Aug 14, 2020
2d41a22
Move MarshalBuilder to new file
HurricanKai Aug 14, 2020
80dc6a3
Cleanup Files
HurricanKai Aug 14, 2020
0f10b3d
Use ITypeSymbol over string
HurricanKai Aug 15, 2020
7522c86
Delegate Marshalling
HurricanKai Aug 15, 2020
171e2c3
Get Attribute Data from MarshalContext
HurricanKai Aug 15, 2020
201e0cd
Merge remote-tracking branch 'origin/2.0' into feature/new-interop
Perksey Aug 15, 2020
290e577
Update bindings, fix cache hit bug
Perksey Aug 15, 2020
aba237f
Allow PinObjectAttribute on return values
HurricanKai Aug 15, 2020
8714734
Allow Native Integers when Marshalling bools
HurricanKai Aug 15, 2020
3f9e045
Simplify Variable declaration
HurricanKai Aug 15, 2020
1b2f943
Handle PinObjectAttribute
HurricanKai Aug 15, 2020
617e85c
Merge remote-tracking branch 'upstream/feature/new-interop' into feat…
HurricanKai Aug 15, 2020
289a343
Fix MarshalContext throwing on return types
HurricanKai Aug 15, 2020
33a7257
Use Silk.NET.Core NativeApiAttribute version
HurricanKai Aug 15, 2020
5c0e04b
Span Marshaller
HurricanKai Aug 15, 2020
010213b
Fix Pinning & introduce ParameterInitMiddleware
HurricanKai Aug 15, 2020
feb5948
Fix typing issues in Bool Marshaller
HurricanKai Aug 15, 2020
ad9b5ea
Fix a SpanMarshaller typing issue
HurricanKai Aug 15, 2020
2634228
Fix Variables being declared in too low of a scope
HurricanKai Aug 16, 2020
db8fe7d
Add Silk.NET.Core MarshalUtils
HurricanKai Aug 16, 2020
4850f2a
Do not handle reference types in ParameterInitMiddleware
HurricanKai Aug 16, 2020
e152dbc
String Marshaller
HurricanKai Aug 16, 2020
6377b3b
Add SilkTouch codeowner
HurricanKai Aug 16, 2020
9bf05be
Fix out string not having count attributes (part 1?)
Perksey Aug 16, 2020
4130037
Remove Debug things
HurricanKai Aug 16, 2020
41aab6a
Cast string size
HurricanKai Aug 16, 2020
8b9fde1
Fix an issue where an out string was being fixed
HurricanKai Aug 16, 2020
3c89eb3
Add SilkTouch to bindings.props
HurricanKai Aug 16, 2020
154cbba
Refactorings
HurricanKai Aug 16, 2020
99e12a3
Remove extra Generator reference from OpenGL
HurricanKai Aug 16, 2020
855e4ac
Always use SymbolDisplayFormat.FullyQualifiedFormat
HurricanKai Aug 16, 2020
ceedf4b
partial unsafe -> unsafe partial
Perksey Aug 16, 2020
773c33e
partial override -> override partial
Perksey Aug 16, 2020
2d9c323
Fully Qualify Parameters and Return Type
HurricanKai Aug 16, 2020
328b516
Revert Debug line
HurricanKai Aug 16, 2020
fcf3849
NativeAPIGenerator -> NativeApiGenerator
HurricanKai Aug 16, 2020
989302a
Allow processing of methods without NativeApiAttribute
HurricanKai Aug 16, 2020
efb38b7
Allow processing of classes convertible to Silk.NET.Core.Native.Nativ…
HurricanKai Aug 16, 2020
9b354ed
Fix everything that was broken, hello SilkTouch <3
Perksey Aug 16, 2020
9a3b6f0
Add CoreGetSlotCount
HurricanKai Aug 16, 2020
4cf5188
Remove unused usings
HurricanKai Aug 16, 2020
e3d74aa
Fix issues that would appear occasionally
HurricanKai Aug 16, 2020
f71c971
Change how CoreGetSlotCount works
Perksey Aug 16, 2020
a4700e2
Remove more Debug things
HurricanKai Aug 16, 2020
c31f537
Merge remote-tracking branch 'origin/feature/new-interop' into featur…
Perksey Aug 16, 2020
52e10f8
Rework Loading backend to use a ConcurrentDictionary instead of an Array
HurricanKai Aug 16, 2020
82855fb
PinObjectMarshaller before DelegateMarshaller
HurricanKai Aug 16, 2020
7844b0f
MarshalUtils -> SilkMarshal
HurricanKai Aug 16, 2020
6a938cb
Apply suggestions from code review
Perksey Aug 16, 2020
14e1685
middlewares -> middleware
HurricanKai Aug 16, 2020
25e6847
Silk.NET.Core.Native.AllocBStr -> Silk.NET.Core.Native.SilkMarshal.Al…
HurricanKai Aug 16, 2020
4277d29
Handle MarshalAs on bool return values
HurricanKai Aug 16, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 5 additions & 2 deletions CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Everything
* @Perksey
* @Perksey

# Maths
/src/Maths/ @HurricanKai
/src/Maths/ @HurricanKai

# SilkTouch
/src/Core/Silk.NET.SilkTouch @HurricanKai
30 changes: 15 additions & 15 deletions Silk.NET.sln
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Extensions", "Extensions",
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Silk.NET.Input.Extensions", "src\Input\Extensions\Silk.NET.Input.Extensions\Silk.NET.Input.Extensions.csproj", "{8DCB2EB4-D0DE-4EF9-ACB3-332055D594CB}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Silk.NET.Windowing.Extensions.Veldrid", "src\Windowing\Extensions\Silk.NET.Windowing.Extensions.Veldrid\Silk.NET.Windowing.Extensions.Veldrid.csproj", "{F5D5B4B4-58B7-48D9-881B-DD6A4001793E}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FramebufferResized", "src\Lab\FramebufferResized\FramebufferResized.csproj", "{7AF3C6CA-64FE-43F3-BD7B-C57C83AFAB79}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "OpenXR", "OpenXR", "{ABD1AF6D-D9D1-4157-A1FF-AC98A054DA92}"
Expand Down Expand Up @@ -296,6 +294,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tutorial 3.5 - Lighting Map
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Silk.NET.Windowing", "src\Windowing\Silk.NET.Windowing\Silk.NET.Windowing.csproj", "{00D8F04F-2063-4F4E-B793-0F9DCF2BCFA9}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Silk.NET.SilkTouch", "src\Core\Silk.NET.SilkTouch\Silk.NET.SilkTouch.csproj", "{6B703607-0D63-4A25-BB6A-EC1FBBD77A8C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Silk.NET.SDL", "src\Windowing\Silk.NET.SDL\Silk.NET.SDL.csproj", "{F16EDD0F-5ABE-4B25-98EE-8397E55B5CBA}"
EndProject
Global
Expand Down Expand Up @@ -1631,18 +1631,6 @@ Global
{8DCB2EB4-D0DE-4EF9-ACB3-332055D594CB}.Release|x64.Build.0 = Release|Any CPU
{8DCB2EB4-D0DE-4EF9-ACB3-332055D594CB}.Release|x86.ActiveCfg = Release|Any CPU
{8DCB2EB4-D0DE-4EF9-ACB3-332055D594CB}.Release|x86.Build.0 = Release|Any CPU
{F5D5B4B4-58B7-48D9-881B-DD6A4001793E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F5D5B4B4-58B7-48D9-881B-DD6A4001793E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F5D5B4B4-58B7-48D9-881B-DD6A4001793E}.Debug|x64.ActiveCfg = Debug|Any CPU
{F5D5B4B4-58B7-48D9-881B-DD6A4001793E}.Debug|x64.Build.0 = Debug|Any CPU
{F5D5B4B4-58B7-48D9-881B-DD6A4001793E}.Debug|x86.ActiveCfg = Debug|Any CPU
{F5D5B4B4-58B7-48D9-881B-DD6A4001793E}.Debug|x86.Build.0 = Debug|Any CPU
{F5D5B4B4-58B7-48D9-881B-DD6A4001793E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F5D5B4B4-58B7-48D9-881B-DD6A4001793E}.Release|Any CPU.Build.0 = Release|Any CPU
{F5D5B4B4-58B7-48D9-881B-DD6A4001793E}.Release|x64.ActiveCfg = Release|Any CPU
{F5D5B4B4-58B7-48D9-881B-DD6A4001793E}.Release|x64.Build.0 = Release|Any CPU
{F5D5B4B4-58B7-48D9-881B-DD6A4001793E}.Release|x86.ActiveCfg = Release|Any CPU
{F5D5B4B4-58B7-48D9-881B-DD6A4001793E}.Release|x86.Build.0 = Release|Any CPU
{7AF3C6CA-64FE-43F3-BD7B-C57C83AFAB79}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7AF3C6CA-64FE-43F3-BD7B-C57C83AFAB79}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7AF3C6CA-64FE-43F3-BD7B-C57C83AFAB79}.Debug|x64.ActiveCfg = Debug|Any CPU
Expand Down Expand Up @@ -1811,6 +1799,18 @@ Global
{00D8F04F-2063-4F4E-B793-0F9DCF2BCFA9}.Release|x64.Build.0 = Release|Any CPU
{00D8F04F-2063-4F4E-B793-0F9DCF2BCFA9}.Release|x86.ActiveCfg = Release|Any CPU
{00D8F04F-2063-4F4E-B793-0F9DCF2BCFA9}.Release|x86.Build.0 = Release|Any CPU
{6B703607-0D63-4A25-BB6A-EC1FBBD77A8C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6B703607-0D63-4A25-BB6A-EC1FBBD77A8C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6B703607-0D63-4A25-BB6A-EC1FBBD77A8C}.Debug|x64.ActiveCfg = Debug|Any CPU
{6B703607-0D63-4A25-BB6A-EC1FBBD77A8C}.Debug|x64.Build.0 = Debug|Any CPU
{6B703607-0D63-4A25-BB6A-EC1FBBD77A8C}.Debug|x86.ActiveCfg = Debug|Any CPU
{6B703607-0D63-4A25-BB6A-EC1FBBD77A8C}.Debug|x86.Build.0 = Debug|Any CPU
{6B703607-0D63-4A25-BB6A-EC1FBBD77A8C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6B703607-0D63-4A25-BB6A-EC1FBBD77A8C}.Release|Any CPU.Build.0 = Release|Any CPU
{6B703607-0D63-4A25-BB6A-EC1FBBD77A8C}.Release|x64.ActiveCfg = Release|Any CPU
{6B703607-0D63-4A25-BB6A-EC1FBBD77A8C}.Release|x64.Build.0 = Release|Any CPU
{6B703607-0D63-4A25-BB6A-EC1FBBD77A8C}.Release|x86.ActiveCfg = Release|Any CPU
{6B703607-0D63-4A25-BB6A-EC1FBBD77A8C}.Release|x86.Build.0 = Release|Any CPU
{F16EDD0F-5ABE-4B25-98EE-8397E55B5CBA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F16EDD0F-5ABE-4B25-98EE-8397E55B5CBA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F16EDD0F-5ABE-4B25-98EE-8397E55B5CBA}.Debug|x64.ActiveCfg = Debug|Any CPU
Expand Down Expand Up @@ -1941,7 +1941,6 @@ Global
{77AA84B4-6D0A-4FCB-8268-18B2812D7955} = {E1F91563-7277-4E9B-A3B7-8D5FD9802A4A}
{8D84B804-168F-4EAA-BC09-F55A35A29887} = {FA9D1C95-5585-4DEC-B226-1447A486C376}
{8DCB2EB4-D0DE-4EF9-ACB3-332055D594CB} = {8D84B804-168F-4EAA-BC09-F55A35A29887}
{F5D5B4B4-58B7-48D9-881B-DD6A4001793E} = {3501BAD6-406A-49BC-BE0E-5A49A3AAAE6A}
{7AF3C6CA-64FE-43F3-BD7B-C57C83AFAB79} = {DFA0E841-33E5-4533-AF00-964E21A141B8}
{B6017708-8E8C-4230-95AD-2D06237D68D4} = {ABD1AF6D-D9D1-4157-A1FF-AC98A054DA92}
{90471225-AC23-424E-B62E-F6EC4C6ECAC0} = {ABD1AF6D-D9D1-4157-A1FF-AC98A054DA92}
Expand All @@ -1957,6 +1956,7 @@ Global
{5C119A02-AD0F-4222-9379-DB2DBAC59868} = {E1F91563-7277-4E9B-A3B7-8D5FD9802A4A}
{93CC7D39-530B-4E22-8D15-3A97FFA523F6} = {E1F91563-7277-4E9B-A3B7-8D5FD9802A4A}
{00D8F04F-2063-4F4E-B793-0F9DCF2BCFA9} = {23324041-2076-477C-A4BF-B385B8066C6C}
{6B703607-0D63-4A25-BB6A-EC1FBBD77A8C} = {0651C5EF-50AA-4598-8D9C-8F210ADD8490}
{F16EDD0F-5ABE-4B25-98EE-8397E55B5CBA} = {23324041-2076-477C-A4BF-B385B8066C6C}
EndGlobalSection
EndGlobalSection
Expand Down
Binary file modified build/cache/cl.json.gz
Binary file not shown.
Binary file modified build/cache/gl.json.gz
Binary file not shown.
Binary file modified build/cache/glcore.json.gz
Binary file not shown.
Binary file modified build/cache/gles2.json.gz
Binary file not shown.
Binary file modified build/cache/openxr.json.gz
Binary file not shown.
Binary file modified build/cache/vulkan.json.gz
Binary file not shown.
4 changes: 2 additions & 2 deletions build/csharp_typemap.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"GLsizeiptrARB": "UIntPtr",
"GLintptrARB": "IntPtr",
"GLhandleARB": "uint",
"GLhalfARB": "Silk.NET.Core.Math.Half",
"GLhalfNV": "Silk.NET.Core.Math.Half",
"GLhalfARB": "System.Half",
"GLhalfNV": "System.Half",
"GLcharARB": "char",
"GLint64EXT": "long",
"GLuint64EXT": "ulong",
Expand Down
1 change: 1 addition & 0 deletions build/props/bindings.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<Project>
<ItemGroup>
<ProjectReference Include="$(MSBuildThisFileDirectory)..\..\src\Core\Silk.NET.Core\Silk.NET.Core.csproj" />
<ProjectReference Include="$(MSBuildThisFileDirectory)..\..\src\Core\Silk.NET.SilkTouch\Silk.NET.SilkTouch.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false"/>
</ItemGroup>

<Import Project="common.props" />
Expand Down
105 changes: 43 additions & 62 deletions generator.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,6 @@
},
"namespace": "Silk.NET.OpenGL",
"extensionsNamespace": "Silk.NET.OpenGL.Extensions",
"legacyNameContainer": {
"Linux": "libGL.so.1",
"Windows": "opengl32.dll",
"MacOS": "/System/Library/Frameworks/OpenGL.framework/OpenGL",
"Android": "libGL.so.1",
"IOS": "/System/Library/Frameworks/OpenGL.framework/OpenGL",
"ClassName": "GLCoreLibraryNameContainer"
},
"typeMaps": [
{
"$include.glTypeMap": "build/gl_typemap.json"
Expand Down Expand Up @@ -75,14 +67,6 @@
},
"namespace": "Silk.NET.OpenGL.Legacy",
"extensionsNamespace": "Silk.NET.OpenGL.Legacy.Extensions",
"legacyNameContainer": {
"Linux": "libGL.so.1",
"Windows": "opengl32.dll",
"MacOS": "/System/Library/Frameworks/OpenGL.framework/OpenGL",
"Android": "libGL.so.1",
"IOS": "/System/Library/Frameworks/OpenGL.framework/OpenGL",
"ClassName": "OpenGLLibraryNameContainer"
},
"typeMaps": [
{
"$include.glTypeMap": "build/gl_typemap.json"
Expand Down Expand Up @@ -121,14 +105,6 @@
},
"namespace": "Silk.NET.OpenGLES",
"extensionsNamespace": "Silk.NET.OpenGLES.Extensions",
"legacyNameContainer": {
"Linux": "libGLESv2.so",
"Windows": "libGLESv2.dll",
"MacOS": "/System/Library/Frameworks/OpenGLES.framework/OpenGLES",
"Android": "libGLESv2.so",
"IOS": "/System/Library/Frameworks/OpenGLES.framework/OpenGLES",
"ClassName": "OpenGLESLibraryNameContainer"
},
"typeMaps": [
{
"$include.glTypeMap": "build/gl_typemap.json"
Expand Down Expand Up @@ -167,13 +143,14 @@
},
"namespace": "Silk.NET.OpenCL",
"extensionsNamespace": "Silk.NET.OpenCL.Extensions",
"legacyNameContainer": {
"Linux": "libOpenCL.so",
"Windows": "opencl.dll",
"MacOS": "/System/Library/Frameworks/OpenCL.framework/OpenCL",
"Android": "libOpenCL.so",
"IOS": "/System/Library/Frameworks/OpenCL.framework/OpenCL",
"ClassName": "OpenCLLibraryNameContainer"
"nameContainer": {
"linux-x64": "libOpenCL.so",
"win-x64": "opencl.dll",
"win-x86": "opencl.dll",
"osx-x64": "/System/Library/Frameworks/OpenCL.framework/OpenCL",
"android": "libOpenCL.so",
"iOS": "/System/Library/Frameworks/OpenCL.framework/OpenCL",
"className": "OpenCLLibraryNameContainer"
},
"typeMaps": [
{
Expand Down Expand Up @@ -324,13 +301,14 @@
},
"namespace": "Silk.NET.Vulkan",
"extensionsNamespace": "Silk.NET.Vulkan.Extensions",
"legacyNameContainer": {
"Linux": "libvulkan.so.1",
"Windows": "vulkan-1.dll",
"MacOS": "libMoltenVK.dylib",
"Android": "libvulkan.so.1",
"IOS": "__Internal",
"ClassName": "VulkanLibraryNameContainer"
"nameContainer": {
"linux-x64": "libvulkan.so.1",
"win-x64": "vulkan-1.dll",
"win-x86": "vulkan-1.dll",
"osx-x64": "libMoltenVK.dylib",
"android": "libvulkan.so.1",
"iOS": "__Internal",
"className": "VulkanLibraryNameContainer"
},
"typeMaps": [
{
Expand Down Expand Up @@ -437,13 +415,14 @@
},
"namespace": "Silk.NET.Assimp",
"extensionsNamespace": "Silk.NET.Assimp.Extensions",
"legacyNameContainer": {
"Linux": "libassimp.so.5",
"Windows": "Assimp32.dll",
"MacOS": "libassimp.5.dylib",
"Android": "libassimp.so.5",
"IOS": "__Internal",
"ClassName": "AssimpLibraryNameContainer"
"nameContainer": {
"linux-x64": "libassimp.so.5",
"win-x64": "Assimp64.dll",
"win-x86": "Assimp32.dll",
"osx-x64": "libassimp.5.dylib",
"android": "libassimp.so.5",
"iOS": "__Internal",
"className": "AssimpLibraryNameContainer"
},
"typeMaps": [
{
Expand Down Expand Up @@ -490,24 +469,25 @@
},
"namespace": "Silk.NET.OpenXR",
"extensionsNamespace": "Silk.NET.OpenXR.Extensions",
"legacyNameContainer": {
"Linux": "libopenxr_loader.so.1",
"Windows": "openxr_loader.dll",
"MacOS": "null",
"Android": "libopenxr_loader.so.1",
"IOS": "__Internal",
"ClassName": "OpenXRLibraryNameContainer"
"nameContainer": {
"linux-x64": "libopenxr_loader.so.1",
"win-x64": "openxr_loader.dll",
"win-x86": "openxr_loader.dll",
"osx-x64": "null",
"android": "libopenxr_loader.so.1",
"iOS": "__Internal",
"className": "OpenXRLibraryNameContainer"
},
"typeMaps": [
{
"char": "byte",
"XR_DEFINE_ATOM": "uint64_t",
"LUID": "ulong",
"D3D_FEATURE_LEVEL": "uint",
"VkInstance": "Silk.NET.GLFW.VkHandle",
"VkPhysicalDevice": "Silk.NET.GLFW.VkHandle",
"VkInstance": "Silk.NET.Core.Native.VkHandle",
"VkPhysicalDevice": "Silk.NET.Core.Native.VkHandle",
"VkImage": "ulong",
"VkDevice": "Silk.NET.GLFW.VkHandle",
"VkDevice": "Silk.NET.Core.Native.VkHandle",
"PFN_xrVoidFunction": "FuncPtr",
"PFN_xrDebugUtilsMessengerCallbackEXT": "FuncPtr",
"PFNEGLGETPROCADDRESSPROC": "FuncPtr",
Expand Down Expand Up @@ -600,13 +580,14 @@
},
"namespace": "Silk.NET.SDL",
"extensionsNamespace": "Silk.NET.SDL.Extensions",
"legacyNameContainer": {
"Linux": "libSDL2-2.0.so.0",
"Windows": "SDL2.dll",
"MacOS": "libSDL2-2.0.0.dylib",
"Android": "libSDL2-2.0.so.0",
"IOS": "__Internal",
"ClassName": "SDLLibraryNameContainer"
"nameContainer": {
"linux-x64": "libSDL2-2.0.so.0",
"win-x64": "SDL2.dll",
"win-x86": "SDL2.dll",
"osx-x64": "libSDL2-2.0.0.dylib",
"android": "libSDL2-2.0.so.0",
"iOS": "__Internal",
"className": "SDLLibraryNameContainer"
},
"typeMaps": [
{
Expand Down
4 changes: 2 additions & 2 deletions src/Assimp/Silk.NET.Assimp/Assimp.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using Silk.NET.Core.Contexts;
using Silk.NET.Core.Loader;
using Silk.NET.Core.Native;
using Ultz.SuperInvoke;

#pragma warning disable 1591

Expand All @@ -11,7 +11,7 @@ public partial class Assimp
{
public static Assimp GetApi()
{
return LibraryActivator.CreateInstance<Assimp>(new AssimpLibraryNameContainer().GetLibraryName());
return new Assimp(new DefaultNativeContext(new AssimpLibraryNameContainer().GetLibraryName()));
}

public override bool IsExtensionPresent(string extension) => IsExtensionSupported(extension) == 1;
Expand Down
Loading