Initial commit.
This commit is contained in:
29
tests/short-vec-11.ispc
Normal file
29
tests/short-vec-11.ispc
Normal file
@@ -0,0 +1,29 @@
|
||||
export uniform int width() { return programCount; }
|
||||
|
||||
export void f_fu(uniform float RET[], uniform float aFOO[], uniform float b) {
|
||||
uniform float<3> x = {1,2,3}, y = {b-5,b-5,b-5};
|
||||
|
||||
RET[programIndex] = 0;
|
||||
|
||||
uniform float<3> z = x[b-5];
|
||||
|
||||
if (programIndex < 3)
|
||||
RET[programIndex] = z[programIndex];
|
||||
|
||||
/*CO int index = aFOO[programIndex];*/
|
||||
/*CO index = min(index, 3);*/
|
||||
/*CO return x[index];*/
|
||||
|
||||
/*CO return x << 1;*/
|
||||
/*CO return c[0] ? 1 : 0;*/
|
||||
/*CO x = b;*/
|
||||
/*CO y = b;*/
|
||||
/*CO return x+y;*/
|
||||
}
|
||||
|
||||
export void result(uniform float RET[]) {
|
||||
RET[programIndex] = 0;
|
||||
RET[0] = 1;
|
||||
RET[1] = 1;
|
||||
RET[2] = 1;
|
||||
}
|
||||
Reference in New Issue
Block a user