846eca6c72
For now, the hierarchy of module dependencies is hard-coded into dehydrate_sksl.py. (It is already hardcoded into SkSLCompiler.cpp, but not in a way that is easily accessible to sksl-precompile.) sksl-precompile now takes one output and an arbitrary number of inputs. The inputs are processed from right to left, layering their symbol tables as we go. e.g., sksl_frag is compiled like this: sksl-precompile sksl_frag.dehydrated.sksl sksl_frag.sksl sksl_gpu.sksl At present this doesn't change anything, because every module is written in a standalone fashion (since nothing else was allowed). I've demonstrated that these changes actually work as intended in a followup example CL (not meant to be submitted). Change-Id: Ifac638537f77b4a9c78b8cd94a6c4efd4bad01cc Bug: skia:13164 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/532197 Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: John Stiles <johnstiles@google.com> Auto-Submit: John Stiles <johnstiles@google.com> |
||
---|---|---|
.. | ||
BUILD.bazel | ||
SkSLPrecompile.cpp |