Configuration scripts - part 3
In Part 1 I described the configuration system in the engine. In Part 2 I described the reason and thoughts behind the topic: Designing intuitive API that makes sense. Now time for Part 3. This time we will analyze changes in script and reason behind it. Compute shader script Let's start with the simplest compute shader script that doing anything : Compute { ShaderFile = "sys://Shaders/ComputeShader.glsl" } New version: Compute { Shader .Bind ( "sys://Shaders/ComputeShader.glsl" ); } This may look like a small change but it brings consistency to script. From now on there is only function style calls with ';' at the end. Defines Let's now add Define to script. In original format this would look like this: Compute { Define ( "MY_DEFINE" ) ShaderFile = "sys://Shaders/ComputeShader.glsl" } The new one is more flexible and allows to do it i...