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

Add Metal Bindings #1470

Closed
wants to merge 5 commits into from
Closed
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
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
[submodule "build/submodules/GLFW"]
path = build/submodules/GLFW
url = https://github.com/glfw/glfw.git
[submodule "build/submodules/metal-cpp"]
path = build/submodules/metal-cpp
url = https://github.com/bkaradzic/metal-cpp.git
[submodule "build/submodules/Assimp"]
path = build/submodules/Assimp
url = https://github.com/assimp/assimp
Expand Down
18 changes: 18 additions & 0 deletions Silk.NET.sln
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Silk.NET.OpenXR.Extensions.
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Silk.NET.OpenXR.Extensions.OPPO", "src\OpenXR\Extensions\Silk.NET.OpenXR.Extensions.OPPO\Silk.NET.OpenXR.Extensions.OPPO.csproj", "{ABC4717F-2863-4B79-8812-7C1D851EE336}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Metal", "Metal", "{AF4FC983-07DC-4488-BD7C-7D03582EDC95}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Silk.NET.Metal", "src\Silk.NET.Metal\Silk.NET.Metal.csproj", "{D4E84B45-E636-4803-9B29-E062087D40E2}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -3487,6 +3491,18 @@ Global
{ABC4717F-2863-4B79-8812-7C1D851EE336}.Release|x64.Build.0 = Release|Any CPU
{ABC4717F-2863-4B79-8812-7C1D851EE336}.Release|x86.ActiveCfg = Release|Any CPU
{ABC4717F-2863-4B79-8812-7C1D851EE336}.Release|x86.Build.0 = Release|Any CPU
{D4E84B45-E636-4803-9B29-E062087D40E2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D4E84B45-E636-4803-9B29-E062087D40E2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D4E84B45-E636-4803-9B29-E062087D40E2}.Debug|x64.ActiveCfg = Debug|Any CPU
{D4E84B45-E636-4803-9B29-E062087D40E2}.Debug|x64.Build.0 = Debug|Any CPU
{D4E84B45-E636-4803-9B29-E062087D40E2}.Debug|x86.ActiveCfg = Debug|Any CPU
{D4E84B45-E636-4803-9B29-E062087D40E2}.Debug|x86.Build.0 = Debug|Any CPU
{D4E84B45-E636-4803-9B29-E062087D40E2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D4E84B45-E636-4803-9B29-E062087D40E2}.Release|Any CPU.Build.0 = Release|Any CPU
{D4E84B45-E636-4803-9B29-E062087D40E2}.Release|x64.ActiveCfg = Release|Any CPU
{D4E84B45-E636-4803-9B29-E062087D40E2}.Release|x64.Build.0 = Release|Any CPU
{D4E84B45-E636-4803-9B29-E062087D40E2}.Release|x86.ActiveCfg = Release|Any CPU
{D4E84B45-E636-4803-9B29-E062087D40E2}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down Expand Up @@ -3766,6 +3782,8 @@ Global
{E1624E31-C702-42EC-AC47-20358B3CCF49} = {90471225-AC23-424E-B62E-F6EC4C6ECAC0}
{82D76E01-3166-4549-A433-4C2C4FD6788E} = {90471225-AC23-424E-B62E-F6EC4C6ECAC0}
{ABC4717F-2863-4B79-8812-7C1D851EE336} = {90471225-AC23-424E-B62E-F6EC4C6ECAC0}
{AF4FC983-07DC-4488-BD7C-7D03582EDC95} = {16AFCF73-8CC1-4B5D-8969-A90F468DC6D5}
{D4E84B45-E636-4803-9B29-E062087D40E2} = {AF4FC983-07DC-4488-BD7C-7D03582EDC95}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {F5273D7F-3334-48DF-94E3-41AE6816CD4D}
Expand Down
1 change: 1 addition & 0 deletions build/submodules/metal-cpp
Submodule metal-cpp added at 89f87c
45 changes: 45 additions & 0 deletions generator.json
Original file line number Diff line number Diff line change
Expand Up @@ -924,6 +924,51 @@
}
]
},
{
"profileName": "Metal",
"sources": [
"build/submodules/metal-cpp/SingleHeader/Metal.hpp"
],
"mode": "Clang",
"cacheDir": "build/cache",
"cacheKey": "metal",
"controlDescriptors": [],
"prefix": "MTL",
"clang": {
"args": [
"--language=c++",
"--std=c++17",
"-m64",
"-Wno-expansion-to-defined",
"-Wno-ignored-attributes",
"-Wno-ignored-pragma-intrinsic",
"-Wno-nonportable-include-path",
"-Wno-pragma-pack",
"-I$windowsSdkIncludes",
"-Ibuild/submodules/metal-cpp/SingleHeader/"
],
"traverse": [
],
"classes": {
}
},
"exclude": [],
"rename": {},
"bakery": {
"profileNames": [
"metal"
]
},
"output": {
"mode": "Default",
"path": "src/Metal",
"licenseFile": "build/LICENSE_HEADER.txt",
"props": "build/props/bindings.props"
},
"namespace": "Silk.NET.Metal",
"extensionsNamespace": "Silk.NET.Metal",
"typeMaps": []
},
{
"profileName": "Core",
"sources": [
Expand Down
8 changes: 8 additions & 0 deletions src/Silk.NET.Metal/Silk.NET.Metal.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>

</Project>