forked from UniStuttgart-VISUS/megamol
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature-umap
- Loading branch information
Showing
269 changed files
with
11,049 additions
and
3,532 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
plugins/mesh_gl/shaders/mesh_gl/dfr_gltf_textured_example.frag.glsl | ||
plugins/moldyn_gl/shaders/moldyn_gl/grim_renderer/deferred.frag.glsl | ||
plugins/moldyn_gl/shaders/moldyn_gl/grim_renderer/deferred_sphere.vert.glsl | ||
plugins/moldyn_gl/shaders/moldyn_gl/grim_renderer/depth_mip.frag.glsl | ||
plugins/moldyn_gl/shaders/moldyn_gl/grim_renderer/init_depth_map.frag.glsl | ||
plugins/moldyn_gl/shaders/moldyn_gl/grim_renderer/sphere.vert.glsl | ||
plugins/moldyn_gl/shaders/moldyn_gl/grim_renderer/vert_cnt_2.vert.glsl | ||
plugins/moldyn_gl/shaders/moldyn_gl/mdao_volume_generator/mdao_volume.geom.glsl | ||
plugins/moldyn_gl/shaders/moldyn_gl/sphere_renderer/sphere_bufferarray.frag.glsl | ||
plugins/moldyn_gl/shaders/moldyn_gl/sphere_renderer/sphere_geometry.frag.glsl | ||
plugins/moldyn_gl/shaders/moldyn_gl/sphere_renderer/sphere_mdao_deferred.frag.glsl | ||
plugins/moldyn_gl/shaders/moldyn_gl/sphere_renderer/sphere_mdao.frag.glsl | ||
plugins/moldyn_gl/shaders/moldyn_gl/sphere_renderer/sphere_mdao_geometry.frag.glsl | ||
plugins/moldyn_gl/shaders/moldyn_gl/sphere_renderer/sphere_outline.frag.glsl | ||
plugins/moldyn_gl/shaders/moldyn_gl/sphere_renderer/sphere_simple.frag.glsl | ||
plugins/moldyn_gl/shaders/moldyn_gl/sphere_renderer/sphere_splat.frag.glsl | ||
plugins/moldyn_gl/shaders/moldyn_gl/sphere_renderer/sphere_splat.vert.glsl | ||
plugins/moldyn_gl/shaders/moldyn_gl/sphere_renderer/sphere_ssbo.frag.glsl | ||
plugins/moldyn_gl/shaders/moldyn_gl/sphere_renderer/sphere_ssbo.vert.glsl | ||
plugins/molecularmaps/shaders/molecularmaps/geolinesShader.geom.glsl | ||
plugins/molecularmaps/shaders/molecularmaps/mapShader.frag.glsl | ||
plugins/molecularmaps/shaders/molecularmaps/mapShader.geom.glsl | ||
plugins/probe_gl/shaders/glyphs/scalar_distribution_probe_glyph.frag.glsl | ||
plugins/probe_gl/shaders/glyphs/scalar_probe_glyph.frag.glsl | ||
plugins/probe_gl/shaders/glyphs/scalar_probe_glyph_v2.frag.glsl | ||
plugins/probe_gl/shaders/glyphs/textured_probe_glyph.frag.glsl | ||
plugins/probe_gl/shaders/glyphs/vector_probe_glyph.frag.glsl | ||
plugins/probe_gl/shaders/hull/dfr_shell_elements.vert.glsl | ||
plugins/probe_gl/shaders/probes/dfr_probeDetailView.frag.glsl | ||
plugins/protein_cuda/shaders/* | ||
plugins/protein_gl/shaders/* | ||
plugins/pwdemos_gl/shaders/* | ||
plugins/test_gl/shaders/test_gl/srtest/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"problemMatcher": [ | ||
{ | ||
"owner": "glslang-check", | ||
"pattern": [ | ||
{ | ||
"regexp": "^([A-Z]+):\\s(.+):([0-9]+):\\s(.*)$", | ||
"file": 2, | ||
"line": 3, | ||
"severity": 1, | ||
"message": 4 | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
#!/bin/bash | ||
set -e | ||
set -o pipefail | ||
|
||
EXIT_CODE=0 | ||
|
||
SHADER_DIRS=() | ||
SHADER_DIRS+=('core_gl/shaders') | ||
|
||
for pdir in plugins/*; do | ||
# Ignore files | ||
if [[ ! -d "$pdir" ]]; then | ||
continue | ||
fi | ||
|
||
# Check for shaders dir | ||
if [ -d "$pdir/shaders" ]; then | ||
SHADER_DIRS+=("${pdir}/shaders") | ||
fi | ||
done | ||
|
||
# Build include path string | ||
INCLUDE_PATHS=() | ||
for sdir in "${SHADER_DIRS[@]}"; do | ||
INCLUDE_PATHS+=("-I$(pwd)/${sdir}") | ||
done | ||
|
||
# Read ignore list | ||
readarray -t ignore_list < .ci/check-shaders-ignore.txt | ||
|
||
echo "::add-matcher::.ci/check-shaders-problem-matchers.json" | ||
|
||
# Iterate over all shaders | ||
for sdir in "${SHADER_DIRS[@]}"; do | ||
echo "==================================================" | ||
echo "=== $sdir" | ||
echo "==================================================" | ||
|
||
shader_files=$(find "$sdir" -type f -regex '.*\.\(vert\|tesc\|tese\|geom\|frag\|comp\|mesh\)\.glsl$' | sort) | ||
|
||
while read -r sfile; do | ||
# Skip empty or deleted filename | ||
if [[ ! -f "$sfile" ]]; then | ||
continue | ||
fi | ||
|
||
# Skip ignored files | ||
ignore=false | ||
for ignore_entry in "${ignore_list[@]}"; do | ||
if [[ "$sfile" == $ignore_entry ]]; then | ||
ignore=true | ||
break | ||
fi | ||
done | ||
if [[ "$ignore" == true ]]; then | ||
echo "::warning::Ignore file $sfile" | ||
continue | ||
fi | ||
|
||
LOCAL_INCLUDE_PATHS=("-I$(pwd)/$(dirname "$sfile")") | ||
|
||
glslang_exit_code=0 | ||
output="$(glslangValidator -l "${INCLUDE_PATHS[@]}" --p "#extension GL_GOOGLE_include_directive : require" "${LOCAL_INCLUDE_PATHS[@]}" $sfile)" || glslang_exit_code=$? | ||
if [[ $glslang_exit_code -ne 0 ]]; then | ||
echo "" | ||
echo "::error::########## glslangValidator found issues in $sfile ##########" | ||
echo "$output" | ||
EXIT_CODE=1 | ||
fi | ||
|
||
done <<< "$shader_files" | ||
done | ||
|
||
echo "::remove-matcher owner=glslang-check::" | ||
|
||
exit $EXIT_CODE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Shader-Check | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
shader_check: | ||
name: Shader-Check | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Download glslang | ||
run: | | ||
mkdir bin | ||
wget "https://github.com/KhronosGroup/glslang/releases/download/main-tot/glslang-main-linux-Release.zip" | ||
unzip -j "glslang-main-linux-Release.zip" "bin/glslangValidator" -d ./bin | ||
rm "glslang-main-linux-Release.zip" | ||
echo "./bin" >> $GITHUB_PATH | ||
- name: Run shader check | ||
run: .ci/check_shaders.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.