Fix AoS/SoA stdlib functions to match documentation

(i.e. actually remove the old offset parameter stuff now that
we can actually pass pointers.)
This commit is contained in:
Matt Pharr
2011-12-03 22:37:53 -08:00
parent 3efbfc30b7
commit 186d0223d2
12 changed files with 55 additions and 52 deletions

View File

@@ -13,7 +13,7 @@ export void f_v(uniform float RET[]) {
float z = 2 + width * programIndex;
float w = 3 + width * programIndex;
soa_to_aos4(x, y, z, w, a, 0);
soa_to_aos4(x, y, z, w, a);
uniform int errs = 0;
for (uniform int i = 0; i < width * programCount; ++i)
if (a[i] != i) ++errs;