Skip to content
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

DirectStorage bindings #855

Merged
merged 9 commits into from
Mar 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions Silk.NET.sln
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,10 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Silk.NET.OpenGL.Legacy.Exte
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Silk.NET.Vulkan.Extensions.SEC", "src\Vulkan\Extensions\Silk.NET.Vulkan.Extensions.SEC\Silk.NET.Vulkan.Extensions.SEC.csproj", "{22FDAB62-4DE6-4896-BB6E-CC19BBBE5951}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Silk.NET.DirectStorage.Native", "src\Native\Silk.NET.DirectStorage.Native\Silk.NET.DirectStorage.Native.csproj", "{100C6D6A-F8B9-4E41-B82C-F665C3BD2160}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Silk.NET.DirectStorage", "src\Microsoft\Silk.NET.DirectStorage\Silk.NET.DirectStorage.csproj", "{950FCED7-5720-4855-ACA3-B0EAB246F669}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -2959,6 +2963,30 @@ Global
{22FDAB62-4DE6-4896-BB6E-CC19BBBE5951}.Release|x64.Build.0 = Release|Any CPU
{22FDAB62-4DE6-4896-BB6E-CC19BBBE5951}.Release|x86.ActiveCfg = Release|Any CPU
{22FDAB62-4DE6-4896-BB6E-CC19BBBE5951}.Release|x86.Build.0 = Release|Any CPU
{100C6D6A-F8B9-4E41-B82C-F665C3BD2160}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{100C6D6A-F8B9-4E41-B82C-F665C3BD2160}.Debug|Any CPU.Build.0 = Debug|Any CPU
{100C6D6A-F8B9-4E41-B82C-F665C3BD2160}.Debug|x64.ActiveCfg = Debug|Any CPU
{100C6D6A-F8B9-4E41-B82C-F665C3BD2160}.Debug|x64.Build.0 = Debug|Any CPU
{100C6D6A-F8B9-4E41-B82C-F665C3BD2160}.Debug|x86.ActiveCfg = Debug|Any CPU
{100C6D6A-F8B9-4E41-B82C-F665C3BD2160}.Debug|x86.Build.0 = Debug|Any CPU
{100C6D6A-F8B9-4E41-B82C-F665C3BD2160}.Release|Any CPU.ActiveCfg = Release|Any CPU
{100C6D6A-F8B9-4E41-B82C-F665C3BD2160}.Release|Any CPU.Build.0 = Release|Any CPU
{100C6D6A-F8B9-4E41-B82C-F665C3BD2160}.Release|x64.ActiveCfg = Release|Any CPU
{100C6D6A-F8B9-4E41-B82C-F665C3BD2160}.Release|x64.Build.0 = Release|Any CPU
{100C6D6A-F8B9-4E41-B82C-F665C3BD2160}.Release|x86.ActiveCfg = Release|Any CPU
{100C6D6A-F8B9-4E41-B82C-F665C3BD2160}.Release|x86.Build.0 = Release|Any CPU
{950FCED7-5720-4855-ACA3-B0EAB246F669}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{950FCED7-5720-4855-ACA3-B0EAB246F669}.Debug|Any CPU.Build.0 = Debug|Any CPU
{950FCED7-5720-4855-ACA3-B0EAB246F669}.Debug|x64.ActiveCfg = Debug|Any CPU
{950FCED7-5720-4855-ACA3-B0EAB246F669}.Debug|x64.Build.0 = Debug|Any CPU
{950FCED7-5720-4855-ACA3-B0EAB246F669}.Debug|x86.ActiveCfg = Debug|Any CPU
{950FCED7-5720-4855-ACA3-B0EAB246F669}.Debug|x86.Build.0 = Debug|Any CPU
{950FCED7-5720-4855-ACA3-B0EAB246F669}.Release|Any CPU.ActiveCfg = Release|Any CPU
{950FCED7-5720-4855-ACA3-B0EAB246F669}.Release|Any CPU.Build.0 = Release|Any CPU
{950FCED7-5720-4855-ACA3-B0EAB246F669}.Release|x64.ActiveCfg = Release|Any CPU
{950FCED7-5720-4855-ACA3-B0EAB246F669}.Release|x64.Build.0 = Release|Any CPU
{950FCED7-5720-4855-ACA3-B0EAB246F669}.Release|x86.ActiveCfg = Release|Any CPU
{950FCED7-5720-4855-ACA3-B0EAB246F669}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down Expand Up @@ -3196,6 +3224,8 @@ Global
{62513482-8713-4568-9086-247FE554B4E4} = {CF69D5C3-4ACE-4458-BA5A-0E9A3B294CDC}
{6E79F43A-D9EE-401B-8CAE-0635382F975F} = {CF69D5C3-4ACE-4458-BA5A-0E9A3B294CDC}
{22FDAB62-4DE6-4896-BB6E-CC19BBBE5951} = {49BC383A-D7E6-4013-93C7-371479B984CC}
{100C6D6A-F8B9-4E41-B82C-F665C3BD2160} = {72E7FA64-5B1E-477D-BD30-63B7F206B3C4}
{950FCED7-5720-4855-ACA3-B0EAB246F669} = {F2CF5D32-4B41-425E-B229-8FFC48F88063}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {F5273D7F-3334-48DF-94E3-41AE6816CD4D}
Expand Down
Binary file modified build/cache/assimp.json.gz
Binary file not shown.
Binary file modified build/cache/d3d11.json.gz
Binary file not shown.
Binary file modified build/cache/d3d12.json.gz
Binary file not shown.
Binary file added build/cache/dstorage.json.gz
Binary file not shown.
Binary file modified build/cache/dxgi.json.gz
Binary file not shown.
Binary file modified build/cache/sdl.json.gz
Binary file not shown.
Binary file modified build/cache/vulkan.json.gz
Binary file not shown.
Binary file modified build/cache/vulkan_video.json.gz
Binary file not shown.
Binary file modified build/cache/win32extras.json.gz
Binary file not shown.
Binary file modified build/cache/xaudio.json.gz
Binary file not shown.
2 changes: 2 additions & 0 deletions build/csharp_typemap.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@
"jobject": "nint",
"timespec": "Timespec",
"LARGE_INTEGER": "long",
"ULARGE_INTEGER": "ulong",
"xcb_glx_fbconfig_t": "nint",
"xcb_glx_drawable_t": "nint",
"xcb_glx_context_t": "nint",
Expand All @@ -146,6 +147,7 @@
"HMONITOR__**": "nint*",
"_LUID": "Luid",
"_LARGE_INTEGER": "long",
"_ULARGE_INTEGER": "ulong",
"IUnknown": "Silk.NET.Core.Native.IUnknown",
"tagRECT": "Silk.NET.Maths.Rectangle<int>",
"tagPOINT": "Silk.NET.Maths.Vector2D<int>",
Expand Down
2 changes: 1 addition & 1 deletion build/submodules/Vulkan-Loader
Submodule Vulkan-Loader updated 102 files
93 changes: 90 additions & 3 deletions generator.json
Original file line number Diff line number Diff line change
Expand Up @@ -1002,7 +1002,7 @@
"args": [
"--language=c++",
"--std=c++17",
"-m32",
"-m64",
"-Wno-expansion-to-defined",
"-Wno-ignored-attributes",
"-Wno-ignored-pragma-intrinsic",
Expand All @@ -1015,7 +1015,9 @@
"$windowsSdkDir/Include/$windowsSdkVersion/shared/evntrace.h",
"$windowsSdkDir/Include/$windowsSdkVersion/um/minwinbase.h",
"$windowsSdkDir/Include/$windowsSdkVersion/um/timezoneapi.h",
"$windowsSdkDir/Include/$windowsSdkVersion/um/winnt.h"
"$windowsSdkDir/Include/$windowsSdkVersion/um/winnt.h",
"$windowsSdkDir/Include/$windowsSdkVersion/um/handleapi.h",
"$windowsSdkDir/Include/$windowsSdkVersion/um/fileapi.h"
],
"classes": {
"win32extras.h": "[Core]Windows"
Expand Down Expand Up @@ -1047,7 +1049,8 @@
"_FILETIME": "Filetime",
"_TIME_ZONE_INFORMATION": "TimeZoneInformation",
"_WNODE_HEADER": "WnodeHeader",
"_EXCEPTION_RECORD": "ExceptionRecord"
"_EXCEPTION_RECORD": "ExceptionRecord",
"_FILE_SEGMENT_ELEMENT": "FileSegmentElement"
},
{
"$include.dxTypemap": "build/dx_typemap.json",
Expand Down Expand Up @@ -1618,6 +1621,90 @@
}
]
},
{
"profileName": "DirectStorage",
"sources": [
"src/Microsoft/Silk.NET.DirectStorage/silk.net.directstorage.h"
],
"mode": "Clang",
"cacheDir": "build/cache",
"cacheKey": "dstorage",
"controlDescriptors": [
"convert-windows-only"
],
"prefix": "DStorage",
"clang": {
"args": [
"--language=c++",
"--std=c++17",
"-m32",
"-Wno-expansion-to-defined",
"-Wno-ignored-attributes",
"-Wno-ignored-pragma-intrinsic",
"-Wno-nonportable-include-path",
"-Wno-pragma-pack",
"-I$windowsSdkIncludes",
"-I$nuget/Microsoft.Direct3D.DirectStorage/*/Include/DirectStorage"
],
"traverse": [
"$nuget/Microsoft.Direct3D.DirectStorage/*/Include/DirectStorage/*.h"
],
"classes": {
"silk.net.directstorage.h": "[Core]DStorage"
}
},
"exclude": [
"ID3D12Resource",
"ID3D12Fence"
],
"rename": {
},
"bakery": {
"profileNames": [
"silk.net.directstorage"
]
},
"output": {
"mode": "Default",
"path": "src/Microsoft",
"licenseFile": "build/LICENSE_HEADER.txt",
"props": "build/props/bindings.props"
},
"namespace": "Silk.NET.DirectStorage",
"extensionsNamespace": "Silk.NET.DirectStorage.Extensions",
"nameContainer": {
"linux-x64": "libdstorage.so",
"win-x64": "dstorage.dll",
"win-x86": "dstorage.dll",
"osx-x64": "libdstorage.dylib",
"android": "libdstorage.so",
"iOS": "__Internal",
"className": "DStorageLibraryNameContainer"
},
"typeMaps": [
{
"ID3D12Resource": "Silk.NET.Direct3D12.ID3D12Resource",
"ID3D12Fence": "Silk.NET.Direct3D12.ID3D12Fence",
"ID3D12Device": "Silk.NET.Direct3D12.ID3D12Device",
"D3D12_TILED_RESOURCE_COORDINATE": "Silk.NET.Direct3D12.TiledResourceCoordinate",
"D3D12_TILE_REGION_SIZE": "Silk.NET.Direct3D12.TileRegionSize",
"_BY_HANDLE_FILE_INFORMATION": "Silk.NET.Core.Win32Extras.ByHandleFileInformation",
"D3D12_BOX": "Silk.NET.Direct3D12.Box"
},
{
"$include.dxTypemap": "build/dx_typemap.json",
"$include.commonTypeMap": "build/csharp_typemap.json"
}
],
"copy": {
"$nuget/Microsoft.Direct3D.DirectStorage/*/bin/ARM/*.dll": "src/Native/Silk.NET.DirectStorage.Native/runtimes/win-arm/native",
"$nuget/Microsoft.Direct3D.DirectStorage/*/bin/ARM64/*.dll": "src/Native/Silk.NET.DirectStorage.Native/runtimes/win-arm64/native",
"$nuget/Microsoft.Direct3D.DirectStorage/*/bin/x64/*.dll": "src/Native/Silk.NET.DirectStorage.Native/runtimes/win-x64/native",
"$nuget/Microsoft.Direct3D.DirectStorage/*/bin/x86/*.dll": "src/Native/Silk.NET.DirectStorage.Native/runtimes/win-x86/native",
"$nuget/Microsoft.Direct3D.DirectStorage/*/LICENSE.txt": "src/Native/Silk.NET.DirectStorage.Native/LICENSE.txt",
"$nuget/Microsoft.Direct3D.DirectStorage/*/$version": "src/Native/Silk.NET.DirectStorage.Native/version.txt"
}
},
{
"profileName": "XAudio",
"_commented_out_sources": [
Expand Down
Loading