Laurent Le Brun
Laurent Le Brun
The three functions `f` can have the same name since the arguments types are different. ```glsl int f(int a) { ... } int f(float a) { ... } int f(vec3...
Fixes #278
When two people build code on the same machine, there can be a collision. The second person may not be able to write to zig-cache if it was created by...
When audio is disabled (e.g. we don't have a .wav file), use a fake Song class that just handles the time. - Use void instead of useless ints in the...
Input: ```glsl vec3 Segment(vec3 p, out float h) { h = 2.; return p; } vec3 meter4(vec2 uv, float value) { float dummy; return Segment(uv.xyy, dummy); } vec3 dash(vec2 uv)...
Input ```glsl void main() { if (x) { y += 1.; } else { y += 2.; } } ``` Current output: ```glsl void main(){y=x?y+1.:y+2.;} ``` I would expect the...
```glsl void foo(float arg) { float x=arg; x*=x*x*x*x; return vec3(0); } ``` We should detect that the value of `x` is unused.
Input: ```glsl float foo(float x) { float color = 0.; color=2.; return color/4.; } ``` Current output: ```glsl float foo(float x) { x=2.; return x/4.; } ```
Input: ```glsl float foo() { vec2 t3b=vec2(26,20),continuous=vec2(100); t3b=vec2(13,3); f(t3b, continuous); return f(t3b, continuous); } ``` Current output: ```glsl float foo() { vec2 t3b=vec2(26,20),continuous=vec2(100); t3b=vec2(13,3); f(t3b,continuous); return f(t3b,continuous); } ``` The...
We could detect and remove unused global variables. e.g. ```glsl int foo; vec3 bar = vec3(1); ```