AaronGhost / glslsmith

Random program generator for the GLSL languages
Apache License 2.0
0 stars 1 forks source link

Add AmberScript back end #6

Open afd opened 3 years ago

afd commented 3 years ago

It would be useful to be able to generate AmberScript and run the Amber binary instead of ShaderTrap.

This would require:

Clearly generation and reduction should still take place at the GLSL source level.

AaronGhost commented 3 years ago

Added support for Amber with GLSL code with commit https://github.com/AaronGhost/glslsmith/commit/87378adfbec2f088a40f20dd18c1188b94b9ce24.

The config file format has changed to support multiple back-ends. The install script has not been updated yet. Scripts accept a new option to select the host language. For example:

python3 exec_glslsmith.py --host amber

The shadertrap line has been replaced with a executors section in the python config file (see readme).