NSL

nsl is a source-to-source compiler aimed at providing a meta-shading-language which will eventually get compiled to HLSL, GLSL and plain C. The main goal is flexibility and easy hacking.

License

All of this is provided under the BSD license. See the COPYING file for details.

Requirements

All you need is a working Python 3 installation. nsl has been tested with Python 3.4. In a virtualenv, install the dependencies as specified in requirements.txt.

Running

To run the tests, simply invoke ./run_tests.sh from the main directory. To see it compile, use nsl.py, which parses a small example shader and pretty prints it back to the console after all compiler passes have been run.