Blender Git Commit Log
Git Commits -> Revision 2c95da8
November 24, 2021, 16:58 (GMT) |
GPUShaderDependency: Initial Commit This is a prototype to support `#include` directive inside glsl sources. The sources are aggregated into a list before being translated to byte_array. This list is used to generate a mapping between the filename and the associated byte_array. For each byte_array, we search for any `#include` and store the file to merge. At runtime, for one input filename we concatenate all byte_arrays that are needed following the include order and avoiding double include. This is meant to evolve into a fully supported `#include` system. |
Commit Details:
Full Hash: 2c95da88aa036c8ab63bf97515c735e073fbcfeb
Parent Commit: 7358a5a
Lines Changed: +402, -180
2 Added Paths:
/source/blender/gpu/intern/gpu_shader_dependency.cc (+154, -0) (View)
/source/blender/gpu/intern/gpu_shader_dependency_private.h (+40, -0) (View)
/source/blender/gpu/intern/gpu_shader_dependency_private.h (+40, -0) (View)