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

@@ -11,7 +11,7 @@ export void f_v(uniform float RET[]) {
a[i] = i;
float x=-1, y=-1, z=-1;
aos_to_soa3(a, 0, &x, &y, &z);
aos_to_soa3(a, &x, &y, &z);
int errs = 0;
if (x != width * programIndex) ++errs;

View File

@@ -11,7 +11,7 @@ export void f_v(uniform float RET[]) {
a[i] = i;
float x=-1, y=-1, z=-1, w=-1;
aos_to_soa4(a, 0, &x, &y, &z, &w);
aos_to_soa4(a, &x, &y, &z, &w);
int errs = 0;
if (x != width * programIndex) ++errs;

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;

View File

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

View File

@@ -11,7 +11,7 @@ export void f_v(uniform float RET[]) {
a[i] = i;
int x=-1, y=-1, z=-1;
aos_to_soa3(a, 0, &x, &y, &z);
aos_to_soa3(a, &x, &y, &z);
int errs = 0;
if (x != width * programIndex) ++errs;

View File

@@ -11,7 +11,7 @@ export void f_v(uniform float RET[]) {
a[i] = i;
int x=-1, y=-1, z=-1, w=-1;
aos_to_soa4(a, 0, &x, &y, &z, &w);
aos_to_soa4(a, &x, &y, &z, &w);
int errs = 0;
if (x != width * programIndex) ++errs;

View File

@@ -13,7 +13,7 @@ export void f_v(uniform float RET[]) {
int z = 2 + width * programIndex;
int 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;

View File

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