1 Reply Latest reply on Jun 20, 2009 12:10 PM by Ceq

    Why stream dimensions so intricate??

    Raistmer
        • Why stream dimensions so intricate??
          Ceq

          Hi Raistmer, certainly that can seem strange, however there is a reason:

          When defining an array you specify first the slower changing dimension, that is the 'y' coordinate, and then the faster changing width coordinate 'x'.

          When defining a stream you are creating a texture, which coordinates are 'x' and 'y' (or x, y, z, w if you use address translation). You can think that dimensions are the fields of a int4 type, so you have to write them in the opposite order. If you access a Brook+ stream (texture) in the wrong orther, out of bound index coordinates will be clamped.

          Well, at least I think that is the reason.