Initial commit.
This commit is contained in:
15
tests/static-global-assign.ispc
Normal file
15
tests/static-global-assign.ispc
Normal file
@@ -0,0 +1,15 @@
|
||||
|
||||
static uniform float x = 2;
|
||||
|
||||
export uniform int width() { return programCount; }
|
||||
|
||||
export void f_fu(uniform float ret[], uniform float aa[], uniform float b) {
|
||||
float a = aa[programIndex];
|
||||
if (b > 0)
|
||||
x = 0;
|
||||
ret[programIndex] = x;
|
||||
}
|
||||
|
||||
export void result(uniform float ret[]) {
|
||||
ret[programIndex] = 0;
|
||||
}
|
||||
Reference in New Issue
Block a user