Rework API graphique Vulkan - EnTT pour ECS + Chargement modèle 3D assimp + SDL3 pour events input et fenetre + mesh texture camera transform ok + attention tous les assets nouveaus ne sont pas commités et il y a du code test en dur dans scene addentity + restructuration globale
This commit is contained in:
47
lib/All/SPIRV-Reflect/.github/workflows/check-formatting.yml
vendored
Normal file
47
lib/All/SPIRV-Reflect/.github/workflows/check-formatting.yml
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
name: Code formatting check
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
# Cancel previous runs if a more recent commit is pushed.
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.head_ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions: read-all
|
||||
|
||||
jobs:
|
||||
clang-format-check:
|
||||
name: clang-format
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Setup clang-format
|
||||
run: |
|
||||
sudo apt-get install -yqq clang-format
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: '0'
|
||||
- name: Switch to pull request branch
|
||||
run: |
|
||||
git checkout ${GITHUB_SHA}
|
||||
- name: Run clang-format
|
||||
run: |
|
||||
git diff origin/${{ github.base_ref }} -U0 --no-color -- '**/*.cpp' '**/*.cc' '**/*.h' '**/*.hh' '**/*.hpp' \
|
||||
| clang-format-diff -p1 >not-formatted.diff 2>&1
|
||||
- name: Check formatting
|
||||
run: |
|
||||
if ! grep -q '[^[:space:]]' not-formatted.diff ; then
|
||||
echo "Code is formatted."
|
||||
else
|
||||
echo "Code is not formatted."
|
||||
echo "Run clang-format-diff on your changes:"
|
||||
echo " git diff origin/${{ github.base_ref }} -U0 --no-color | clang-format-diff -p1 -i"
|
||||
echo ""
|
||||
echo "You can disable clang-format for specific code blocks. Follow https://clang.llvm.org/docs/ClangFormatStyleOptions.html#disabling-formatting-on-a-piece-of-code."
|
||||
echo ""
|
||||
echo "Diff:"
|
||||
cat not-formatted.diff
|
||||
echo ""
|
||||
exit 3
|
||||
fi
|
||||
58
lib/All/SPIRV-Reflect/.github/workflows/linux-cmake-build.yml
vendored
Normal file
58
lib/All/SPIRV-Reflect/.github/workflows/linux-cmake-build.yml
vendored
Normal file
@@ -0,0 +1,58 @@
|
||||
name: Linux build
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
# Cancel previous runs if a more recent commit is pushed.
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.head_ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions: read-all
|
||||
|
||||
jobs:
|
||||
linux-build:
|
||||
name: Build and run tests on Linux using CMake
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
asan: ["ON", "OFF"]
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: '0'
|
||||
- name: Clone submodules
|
||||
run: git submodule update --init --recursive
|
||||
- name: Build
|
||||
run: |
|
||||
mkdir build
|
||||
cd build
|
||||
cmake .. -DCMAKE_BUILD_TYPE=Release -DSPIRV_REFLECT_BUILD_TESTS=ON -DSPIRV_REFLECT_ENABLE_ASAN=${{matrix.asan}}
|
||||
make -j $(nproc)
|
||||
- name: Run unit tests
|
||||
run: |
|
||||
cd build
|
||||
./test-spirv-reflect
|
||||
- name: Clone SPIRV-Database
|
||||
run: |
|
||||
git clone https://github.com/LunarG/SPIRV-Database.git build/SPIRV-Database
|
||||
- name: Test - SaschaWillemsVulkan
|
||||
run: |
|
||||
python tests/ci_database.py --dir build/SPIRV-Database/vulkan/SaschaWillemsVulkan/
|
||||
- name: Test - clspv
|
||||
run: |
|
||||
python tests/ci_database.py --dir build/SPIRV-Database/vulkan/clspv/
|
||||
- name: Test - dawn
|
||||
run: |
|
||||
python tests/ci_database.py --dir build/SPIRV-Database/vulkan/dawn/
|
||||
- name: Test - gl_cts
|
||||
run: |
|
||||
python tests/ci_database.py --dir build/SPIRV-Database/vulkan/gl_cts/
|
||||
- name: Test - naga
|
||||
run: |
|
||||
python tests/ci_database.py --dir build/SPIRV-Database/vulkan/naga/remaps/
|
||||
- name: Test - tint
|
||||
run: |
|
||||
python tests/ci_database.py --dir build/SPIRV-Database/vulkan/tint/
|
||||
30
lib/All/SPIRV-Reflect/.github/workflows/windows-cmake-build.yml
vendored
Normal file
30
lib/All/SPIRV-Reflect/.github/workflows/windows-cmake-build.yml
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
name: Windows build
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
# Cancel previous runs if a more recent commit is pushed.
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.head_ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions: read-all
|
||||
|
||||
jobs:
|
||||
windows-build:
|
||||
name: Build and run tests on Windows using CMake
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: '0'
|
||||
- name: Clone submodules
|
||||
run: git submodule update --init --recursive
|
||||
- name: Build
|
||||
run: |
|
||||
mkdir build
|
||||
cd build
|
||||
cmake -DSPIRV_REFLECT_BUILD_TESTS=ON ..
|
||||
|
||||
cmake --build . --config Release -- /nologo /verbosity:minimal /maxcpucount
|
||||
Reference in New Issue
Block a user