laurentlb/shader-minifier

Group non-adjacent declarations

laurentlb opened this issue · 0 comments

Example:

int x;
float y;
int z;

can be minified to:

int x,z;
float y;

Variables with no init value (or something safe) can be moved up and grouped with a previous declaration.
This is for example useful to group uniforms at the top-level.