Files
ispc/tests/struct-test-112.ispc
2011-06-21 12:48:50 -07:00

16 lines
320 B
Plaintext

export uniform int width() { return programCount; }
export void f_v(uniform float RET[]) {
varying struct { varying struct { float x, y; } q; int i; } a[3];
a[1].q.x = 1;
a[1].q.y = 2;
RET[programIndex] = a[1].q.x + a[1].q.y;
}
export void result(uniform float RET[]) {
RET[programIndex] = 3;
}