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