Initial commit.
This commit is contained in:
15
tests/unif-struct-test-111.ispc
Normal file
15
tests/unif-struct-test-111.ispc
Normal file
@@ -0,0 +1,15 @@
|
||||
|
||||
export uniform int width() { return programCount; }
|
||||
|
||||
|
||||
export void f_v(uniform float RET[]) {
|
||||
uniform 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;
|
||||
}
|
||||
Reference in New Issue
Block a user