1 Reply Latest reply on Dec 12, 2011 11:58 AM by AIF Bob

    How to access dst pixel

    srhouyu Level 1

      Hello, I have to generate a symmetric matrix of float2 type, so I want to read the data that have been calculated earlier.

      But the function sampleNearest() does not support float2 type.

      Are there any other ways to access dst pixels?

        • 1. Re: How to access dst pixel
          AIF Bob Level 3

          If you're only trying to calculate a single float2 matrix then Pixel bender is probably not the right way to do it - PB is optimized for computing large numbers of pixels. If you have a lot of float2x2 values you want to calculate you'll need to encode them as an image (for example a 4 channel image would fit a float2x2 matrix into each pixel), then convert them to a float2x2 to do your calculations.