Initial commit.
This commit is contained in:
20
tests/struct-test-116.ispc
Normal file
20
tests/struct-test-116.ispc
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
export uniform int width() { return programCount; }
|
||||
|
||||
|
||||
struct Foo {
|
||||
uniform float x;
|
||||
uniform float f;
|
||||
};
|
||||
|
||||
export void f_fi(uniform float RET[], uniform float aFOO[], uniform int bFOO[]) {
|
||||
float a = aFOO[programIndex];
|
||||
int b = bFOO[programIndex];
|
||||
varying Foo myFoo = { a, b };
|
||||
RET[programIndex] = myFoo.x + myFoo.f;
|
||||
}
|
||||
|
||||
|
||||
export void result(uniform float RET[]) {
|
||||
RET[programIndex] = 3 + 3 * programIndex;
|
||||
}
|
||||
Reference in New Issue
Block a user