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