In page 24 of the reference manual, there is a a mention of a floats data type (also in page 34, float_array) but can get it to work.
Anyone knows how to use it ?
Here is the excerpt from the manual :
Pixel Bender has some support for arrays. The following one-dimensional arrays are allowed:
.. Constant-size arrays of floats declared as kernel parameters.
.. Constant-size arrays of floats declared as kernel dependents.
NOTE: Pixel Bender 1.0 supports only arrays of floats, and the array size is a compile-time constant.
Declare and access arrays using C syntax:
type name[ size ];
name[ subscript ]
Try something like "dependent float vals;" and initialize vals in the evaluateDependents function. Array support is less than excellent in Pixel Bender and Pixel Bender's documentation. Sorry.
I tried to create a sin and a cos tables to an array, but I got a much slower performance than using the real functions.
Whats the purpose of using an array as a parameter ? At least in After Effects ?
I believe most Pixel Bender clients do not expose an array UI control so its use as a parameter is limited. However, that may change in the future. For now, I suggest you avoid array parameters, but dependent arrays are still useful.