1 - Implement AST-to-HIR conversion of discard instructions.
3 - Handle constant expressions of (matrix {+,-,*,/} scalar)
5 - Handle constant expressions of (vector {+,-,*,/} scalar)
7 - Handle constant expressions of (matrix * vector)
9 - Handle constant expressions of (matrix * matrix)
11 - Handle currently unsupported constant expression types
26 - Handle constant expressions of (struct == struct)
28 - Handle constant expressions of (struct != struct)
30 - Add support to ir_constant for array constants Arrays can only be
31 - declared 'const' in GLSL 1.20+. This is because there are no
32 array constructors in GLSL 1.10, and any variable declared as
33 'const' must have an initializer.
35 - Handle constant expressions of (array == array)
37 - Handle constant expressions of (array != array)
39 - Treat built-in functions with constant parameters as constant expressions.
40 - Rewrite all built-in functions return a single expression.
41 - Modify the HIR generator for functions to automatically inline built-in
42 functions durning translation.
43 - Care must be taken to handle both the 1.10 rules and the 1.20+ rules. In
44 1.10, built-in functions cannot be constant expressions.
46 - Detect code paths in non-void functions that don't reach a return statement
48 - Handle over-riding built-in functions
49 - Is the overload per-compilation unit or per-linked shader?
51 - Handle redeclaration of built-in variables
52 - Handle addition of qualifiers such as 'invariant' or 'centroid'.
53 - Handle resizing of arrays.
54 - Other? We'll have to look at the spec.
56 - Improve handling of constants and their initializers. Constant initializers
57 should never generate any code. This is trival for scalar constants. It is
58 also trivial for arrays, matrices, and vectors that are accessed with
59 constant index values. For others it is more complicated. Perhaps these
60 cases should be silently converted to uniforms?
64 - Implement AST-to-HIR conversion of bit-shift operators.
66 - Implement AST-to-HIR conversion of bit-wise {&,|,^,!} operators.
68 - Implement AST-to-HIR conversion of switch-statements
71 - Update break to correcly handle mixed nexting of switch-statements
74 - Handle currently unsupported constant expression types