3 Replies Latest reply on Aug 4, 2011 4:47 PM by unique_screenname_here

    can get the float_array or floats stated in the manual to work

    chauffeurdevan Level 2

      Hi,

       

      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 ]

       

      Thanks

       

       

      Jocelyn Tremblay