Initial commit.
This commit is contained in:
18
tests/reference-assignment.ispc
Normal file
18
tests/reference-assignment.ispc
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
export uniform int width() { return programCount; }
|
||||
|
||||
|
||||
|
||||
void foo(reference float x, reference float y) {
|
||||
x = y;
|
||||
}
|
||||
|
||||
export void f_fu(uniform float ret[], uniform float a[], uniform float b) {
|
||||
float aa = a[programIndex], bb = b;
|
||||
foo(aa, bb);
|
||||
ret[programIndex] = aa;
|
||||
}
|
||||
|
||||
export void result(uniform float r[]) {
|
||||
r[programIndex] = 5;
|
||||
}
|
||||
Reference in New Issue
Block a user