Added runtime shader compiler on linux (#339)

* Added runtime shader compiler on linux

* dxcapi path fix

* linux: shaderdump generation on github CI

* linux: worker thread shutdown fix

* thread safety in worker shutdown

* cmake fix?

Co-authored-by: Turánszki János <turanszkij@users.noreply.github.com>
This commit is contained in:
Matteo De Carlo
2021-11-05 12:17:41 +01:00
committed by GitHub
parent 571ac00bc0
commit d38aa343e1
14 changed files with 1150 additions and 470 deletions
+7 -2
View File
@@ -88,6 +88,13 @@ jobs:
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make
echo "---Generating Shader Dump---"
cd WickedEngine
./offlineshadercompiler spirv rebuild shaderdump
mv wiShaderDump.h ../../WickedEngine/
cd ..
echo "---Rebuilding with ShaderDump---"
make -B
- name: Move binaries
run: |
@@ -99,7 +106,6 @@ jobs:
with:
name: Editor (Ubuntu 20.04)
path: |
Editor/shaders/spirv/*.cso
Content/
README.md
LICENSE.md
@@ -117,7 +123,6 @@ jobs:
with:
name: Tests (Ubuntu 20.04)
path: |
Tests/shaders/spirv/*.cso
Content/
README.md
LICENSE.md
+7 -2
View File
@@ -87,6 +87,13 @@ jobs:
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make
echo "---Generating Shader Dump---"
cd WickedEngine
./offlineshadercompiler spirv rebuild shaderdump
mv wiShaderDump.h ../../WickedEngine/
cd ..
echo "---Rebuilding with ShaderDump---"
make -B
- name: Move binaries
run: |
@@ -98,7 +105,6 @@ jobs:
with:
name: Editor (Ubuntu 20.04)
path: |
Editor/shaders/spirv/*.cso
Content/
README.md
LICENSE.md
@@ -116,7 +122,6 @@ jobs:
with:
name: Tests (Ubuntu 20.04)
path: |
Tests/shaders/spirv/*.cso
Content/
README.md
LICENSE.md
+8 -2
View File
@@ -88,6 +88,14 @@ jobs:
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make
echo "---Generating Shader Dump---"
cd WickedEngine
./offlineshadercompiler spirv rebuild shaderdump
mv wiShaderDump.h ../../WickedEngine/
cd ..
echo "---Rebuilding with ShaderDump---"
make -B
- name: Move binaries
run: |
@@ -99,7 +107,6 @@ jobs:
with:
name: Editor (Ubuntu 20.04)
path: |
Editor/shaders/spirv/*.cso
Content/
README.md
LICENSE.md
@@ -117,7 +124,6 @@ jobs:
with:
name: Tests (Ubuntu 20.04)
path: |
Tests/shaders/spirv/*.cso
Content/
README.md
LICENSE.md