Age | Commit message (Collapse) | Author |
|
vectors, insert casts) when a perfect match isn't found.
|
|
This is used to modify function calls (when possible) to make the arguments
map to the function parameters. This includes "unrolling" vector types
and doing casts.
Example:
vec2 v2 = vec2(1.2, 3.4)
ivec3 iv = ivec3(false, v2);
Is converted into:
ivec3 iv = ivec3(int(false), int(v2[0]), int(v2[1]))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Language (orange) book.
|
|
|
|
|
|
|
|
|
|
|
|
an array: convert index to a swizzle/writemask
|
|
|
|
|
|
Instead of defining functions with an extra dummy parameter to distinguish
from the pre-incr/decr functions, just use new function names: __postIncr
and __postDecr.
|
|
|
|
|
|
|
|
|
|
emit time, not codegen time.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
and expression temporarires. Much better register utilization now.
Lots of other fixes.
The OpenGL GLSL "orange book" brick shader demo works now.
|
|
|
|
|
|
temporaries.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Users can set explicit binding with glBindAttribLocation(), otherwise the
linker will allocate generic attribute slots.
|
|
|