Debian Codegraph @

drivers/gles3/shaders/SCsub

raw symbols SCIP
1 #!/usr/bin/env python
2 from misc.utility.scons_hints import *
3
4 Import("env")
5
6 if "GLES3_GLSL" in env["BUILDERS"]:
7 # find all include files
8 gl_include_files = [str(f) for f in Glob("*_inc.glsl")]
9
10 # find all shader code(all glsl files excluding our include files)
11 glsl_files = [str(f) for f in Glob("*.glsl") if str(f) not in gl_include_files]
12
13 # make sure we recompile shaders if include files change
14 env.Depends([f + ".gen.h" for f in glsl_files], gl_include_files + ["#gles3_builders.py"])
15
16 # compile shaders
17
18 # as we have a few, not yet, converted files we name the ones we want to include:
19 env.GLES3_GLSL("canvas.glsl")
20 env.GLES3_GLSL("feed.glsl")
21 env.GLES3_GLSL("scene.glsl")
22 env.GLES3_GLSL("sky.glsl")
23 env.GLES3_GLSL("canvas_occlusion.glsl")
24 env.GLES3_GLSL("canvas_sdf.glsl")
25 env.GLES3_GLSL("particles.glsl")
26 env.GLES3_GLSL("particles_copy.glsl")
27 env.GLES3_GLSL("skeleton.glsl")
28
29 # once we finish conversion we can introduce this to cover all files:
30 # for glsl_file in glsl_files:
31 # env.GLES3_GLSL(glsl_file)
32
33
34 SConscript("effects/SCsub")