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

16 lines
275 B
Plaintext

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