Debian Codegraph @

servers/rendering/renderer_rd/shaders/environment/SCsub

raw symbols SCIP
1 #!/usr/bin/env python
2 from misc.utility.scons_hints import *
3
4 Import("env")
5
6 if "RD_GLSL" in env["BUILDERS"]:
7 # find all include files
8 gl_include_files = [str(f) for f in Glob("*_inc.glsl")] + [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 + ["#glsl_builders.py"])
15
16 # compile shaders
17 for glsl_file in glsl_files:
18 env.RD_GLSL(glsl_file)