8 PARAM indexes = {-1, 0, 1, 2};
9 PARAM myArray[4] = {{0.11, 0.12, 0.13, 0.14},
10 {0.21, 0.22, 0.23, 0.24},
11 {0.31, 0.32, 0.33, 0.34},
12 {0.41, 0.42, 0.43, 0.44}};
13 MOV result.position, vertex.position;
15 # Load ARL with -1, get array[0].x
16 ARL addr.x, indexes.x;
17 MOV result.color.x, myArray[addr.x + 1];
19 # Load ARL with 0, get array[1].y
20 ARL addr.x, indexes.y;
21 MOV result.color.y, myArray[addr.x + 1];
23 # Load ARL with 1, get array[2].z
24 ARL addr.x, indexes.z;
25 MOV result.color.z, myArray[addr.x + 1];
27 # Load ARL with 2, get array[3].w
28 ARL addr.x, indexes.w;
29 MOV result.color.w, myArray[addr.x + 1];
34 draw rect -0.25 -0.25 0.5 0.5
35 relative probe rgba (0.5, 0.5) (0.11, 0.22, 0.33, 0.44)