Skip to content

Commit

Permalink
Add shaderc bindings (#1490)
Browse files Browse the repository at this point in the history
  • Loading branch information
Beyley authored Jun 24, 2023
1 parent 63eb97a commit bf2b276
Show file tree
Hide file tree
Showing 136 changed files with 5,244 additions and 1,209 deletions.
64 changes: 0 additions & 64 deletions .github/workflows/angle.yml

This file was deleted.

6 changes: 4 additions & 2 deletions .github/workflows/assimp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ on:
- "develop/*"
- "main"
paths:
- "build/submodules/Assimp"
- "build/nuke/Build.Native.cs"
- build/submodules/Assimp
- build/nuke/Native/Core.cs
- build/nuke/Native/Assimp.cs
- .github/workflows/assimp.yml
jobs:
Build:
strategy:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/dxvk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ on:
push:
paths:
- build/submodules/dxvk
- build/nuke/Build.Native.cs
- build/nuke/Native/Core.cs
- build/nuke/Native/Dxvk.cs
- .github/workflows/dxvk.yml
branches-ignore:
- "ci/*"
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/glfw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ on:
- "main"
paths:
- "build/submodules/GLFW"
- "build/nuke/Build.Native.cs"
- "build/nuke/Native/Core.cs"
- "build/nuke/Native/GLFW.cs"
- .github/workflows/glfw.yml
jobs:
Build:
strategy:
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/sdl2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ on:
- "develop/*"
- "main"
paths:
- "build/submodules/SDL"
- "build/nuke/Build.Native.cs"
- ".github/workflows/sdl2.yml"
- build/submodules/SDL
- build/nuke/Native/Core.cs
- build/nuke/Native/SDL2.cs
- .github/workflows/sdl2.yml
jobs:
Build:
strategy:
Expand Down
52 changes: 52 additions & 0 deletions .github/workflows/shaderc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Shaderc
on:
push:
branches-ignore:
- "ci/*"
- "develop/*"
- "main"
paths:
- build/submodules/shaderc
- build/nuke/Native/Core.cs
- build/nuke/Native/Shaderc.cs
- .github/workflows/shaderc.yml
jobs:
Build:
strategy:
fail-fast: false
matrix:
env:
- os: ubuntu-latest
name: Linux
nuke_invoke: ./build.sh
extras: |
sudo apt-get update
sudo apt-get install -y build-essential binutils-aarch64-linux-gnu
name: ${{ matrix.env.name }} Build
runs-on: ${{ matrix.env.os }}
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.PUSHABLE_GITHUB_TOKEN }}
- name: Checkout submodules, configure git
run: |
git submodule update --init --recursive --depth 0 build/submodules/shaderc
git config --local user.email "[email protected]"
git config --local user.name "The Silk.NET Automaton"
- name: Extra prerequisites
run: |
echo running extras
${{ matrix.env.extras }}
- name: Install Zig
uses: goto-bus-stop/setup-zig@v2
- name: Setup .NET 6.0 and .NET 7.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
6.0.201
7.0.*
- name: Build Shaderc
run: ${{ matrix.env.nuke_invoke }} Shaderc
env:
PUSHABLE_GITHUB_TOKEN: ${{ secrets.PUSHABLE_GITHUB_TOKEN }}

7 changes: 4 additions & 3 deletions .github/workflows/spirv-cross.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ on:
- "develop/*"
- "main"
paths:
- "build/submodules/SPIRV-Cross"
- "build/nuke/Build.Native.cs"
- ".github/workflows/spirv-cross.yml"
- build/submodules/SPIRV-Cross
- build/nuke/Native/Core.cs
- build/nuke/Native/SPIRVCross.cs
- .github/workflows/spirv-cross.yml
jobs:
Build:
strategy:
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/spirv-reflect.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ on:
- "develop/*"
- "main"
paths:
- "build/submodules/SPIRV-Reflect"
- "build/nuke/Build.Native.cs"
- ".github/workflows/spirv-reflect.yml"
- build/submodules/SPIRV-Reflect
- build/nuke/Native/Core.cs
- build/nuke/Native/SPIRVReflect.cs
- .github/workflows/spirv-reflect.yml
jobs:
Build:
strategy:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ on:
push:
paths:
- build/submodules/SwiftShader
- build/nuke/Build.Native.cs
- build/nuke/Native/Core.cs
- build/nuke/Native/SwiftShader.cs
- .github/workflows/swiftshader.yml
branches-ignore:
- "ci/*"
- "develop/*"
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/vkd3d.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ on:
- "develop/*"
- "main"
paths:
- "build/submodules/vkd3d"
- "build/submodules/vkd3d-no-ms-abi.patch"
- "build/nuke/Build.Native.cs"
- ".github/workflows/vkd3d.yml"
- "src/Microsoft/Vkd3dCompiler/*"
- build/submodules/vkd3d
- build/submodules/SPIRV-Tools
- build/submodules/vkd3d-no-ms-abi.patch
- build/nuke/Native/Core.cs
- build/nuke/Native/Vkd3d.cs
- .github/workflows/vkd3d.yml
- src/Microsoft/Vkd3dCompiler/*
jobs:
Build:
strategy:
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/vulkan-loader.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
name: Vulkan Loader
on:
push:
branches-ignore:
- "ci/*"
- "develop/*"
- "main"
paths:
- build/submodules/Vulkan-Loader
- build/nuke/Build.Native.cs
branches-ignore:
- "ci/*"
- "develop/*"
- "main"
- build/nuke/Native/Core.cs
- build/nuke/Native/VulkanLoader.cs
- .github/workflows/vulkan-loader.yml
jobs:
Build:
strategy:
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/wgpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ on:
- "develop/*"
- "main"
paths:
- "build/submodules/wgpu-native"
- "build/nuke/Build.Native.cs"
- ".github/workflows/wgpu.yml"
- build/submodules/wgpu-native
- build/nuke/Native/Core.cs
- build/nuke/Native/Wgpu.cs
- .github/workflows/wgpu.yml
jobs:
Build:
strategy:
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,6 @@
[submodule "build/submodules/SPIRV-Cross"]
path = build/submodules/SPIRV-Cross
url = https://github.com/KhronosGroup/SPIRV-Cross
[submodule "build/submodules/shaderc"]
path = build/submodules/shaderc
url = https://github.com/google/shaderc
30 changes: 30 additions & 0 deletions Silk.NET.sln
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Silk.NET.SPIRV.Cross.Native
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tutorial 1.3 - Textures", "examples\CSharp\OpenGL Tutorials\Tutorial 1.3 - Textures\Tutorial 1.3 - Textures.csproj", "{1E7C6166-58B2-46B3-A9BA-18099BD83AF0}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Silk.NET.Shaderc", "src\SPIRV\Silk.NET.Shaderc\Silk.NET.Shaderc.csproj", "{E77BE8DB-3C74-42EB-9B65-67EAAA9AD7DB}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Silk.NET.Shaderc.Native", "src\Native\Silk.NET.Shaderc.Native\Silk.NET.Shaderc.Native.csproj", "{D1E4EDC7-0A06-498A-B0F9-275B7D508A0E}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -3587,6 +3591,30 @@ Global
{1E7C6166-58B2-46B3-A9BA-18099BD83AF0}.Release|x64.Build.0 = Release|Any CPU
{1E7C6166-58B2-46B3-A9BA-18099BD83AF0}.Release|x86.ActiveCfg = Release|Any CPU
{1E7C6166-58B2-46B3-A9BA-18099BD83AF0}.Release|x86.Build.0 = Release|Any CPU
{E77BE8DB-3C74-42EB-9B65-67EAAA9AD7DB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E77BE8DB-3C74-42EB-9B65-67EAAA9AD7DB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E77BE8DB-3C74-42EB-9B65-67EAAA9AD7DB}.Debug|x64.ActiveCfg = Debug|Any CPU
{E77BE8DB-3C74-42EB-9B65-67EAAA9AD7DB}.Debug|x64.Build.0 = Debug|Any CPU
{E77BE8DB-3C74-42EB-9B65-67EAAA9AD7DB}.Debug|x86.ActiveCfg = Debug|Any CPU
{E77BE8DB-3C74-42EB-9B65-67EAAA9AD7DB}.Debug|x86.Build.0 = Debug|Any CPU
{E77BE8DB-3C74-42EB-9B65-67EAAA9AD7DB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E77BE8DB-3C74-42EB-9B65-67EAAA9AD7DB}.Release|Any CPU.Build.0 = Release|Any CPU
{E77BE8DB-3C74-42EB-9B65-67EAAA9AD7DB}.Release|x64.ActiveCfg = Release|Any CPU
{E77BE8DB-3C74-42EB-9B65-67EAAA9AD7DB}.Release|x64.Build.0 = Release|Any CPU
{E77BE8DB-3C74-42EB-9B65-67EAAA9AD7DB}.Release|x86.ActiveCfg = Release|Any CPU
{E77BE8DB-3C74-42EB-9B65-67EAAA9AD7DB}.Release|x86.Build.0 = Release|Any CPU
{D1E4EDC7-0A06-498A-B0F9-275B7D508A0E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D1E4EDC7-0A06-498A-B0F9-275B7D508A0E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D1E4EDC7-0A06-498A-B0F9-275B7D508A0E}.Debug|x64.ActiveCfg = Debug|Any CPU
{D1E4EDC7-0A06-498A-B0F9-275B7D508A0E}.Debug|x64.Build.0 = Debug|Any CPU
{D1E4EDC7-0A06-498A-B0F9-275B7D508A0E}.Debug|x86.ActiveCfg = Debug|Any CPU
{D1E4EDC7-0A06-498A-B0F9-275B7D508A0E}.Debug|x86.Build.0 = Debug|Any CPU
{D1E4EDC7-0A06-498A-B0F9-275B7D508A0E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D1E4EDC7-0A06-498A-B0F9-275B7D508A0E}.Release|Any CPU.Build.0 = Release|Any CPU
{D1E4EDC7-0A06-498A-B0F9-275B7D508A0E}.Release|x64.ActiveCfg = Release|Any CPU
{D1E4EDC7-0A06-498A-B0F9-275B7D508A0E}.Release|x64.Build.0 = Release|Any CPU
{D1E4EDC7-0A06-498A-B0F9-275B7D508A0E}.Release|x86.ActiveCfg = Release|Any CPU
{D1E4EDC7-0A06-498A-B0F9-275B7D508A0E}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down Expand Up @@ -3874,6 +3902,8 @@ Global
{AFF43F5B-46EC-4560-8E92-6D241C0D9F43} = {15FC3D1A-25D7-446B-87A7-B45BA3C2225F}
{EEFD27E0-F0F3-45EF-A2CB-D9C8135BC893} = {72E7FA64-5B1E-477D-BD30-63B7F206B3C4}
{1E7C6166-58B2-46B3-A9BA-18099BD83AF0} = {20A4A2D1-D699-4D71-AA97-950154638576}
{E77BE8DB-3C74-42EB-9B65-67EAAA9AD7DB} = {15FC3D1A-25D7-446B-87A7-B45BA3C2225F}
{D1E4EDC7-0A06-498A-B0F9-275B7D508A0E} = {72E7FA64-5B1E-477D-BD30-63B7F206B3C4}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {F5273D7F-3334-48DF-94E3-41AE6816CD4D}
Expand Down
Binary file added build/cache/shaderc.json.gz
Binary file not shown.
Loading

0 comments on commit bf2b276

Please sign in to comment.