Initial commit.
This commit is contained in:
16
tests/pass-varying-lvalue-to-ref.ispc
Normal file
16
tests/pass-varying-lvalue-to-ref.ispc
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
export uniform int width() { return programCount; }
|
||||
|
||||
void inc(reference float v) { ++v; }
|
||||
|
||||
export void f_fu(uniform float ret[], uniform float aa[], uniform float b) {
|
||||
uniform float foo[32] = 10;
|
||||
int a = (int)aa[programIndex];
|
||||
inc(foo[a]);
|
||||
ret[programIndex] = foo[programIndex];
|
||||
}
|
||||
|
||||
export void result(uniform float ret[]) {
|
||||
ret[programIndex] = 11;
|
||||
ret[0] = 10;
|
||||
}
|
||||
Reference in New Issue
Block a user