added "const" before "static unfiform" in constant folding tests

This commit is contained in:
Evghenii
2014-01-21 14:59:25 +01:00
parent 215abab544
commit 5376743281
3 changed files with 3 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ export uniform int width() { return programCount; }
export void f_f(uniform float RET[], uniform float aFOO[]) {
float a = aFOO[programIndex];
uniform int x = (1 << 4) - ~0xf0f0f0f0 + (2 * 8 / 2);
static uniform int y = (1 << 4) - ~0xf0f0f0f0 + (2 * 8 / 2);
const static uniform int y = (1 << 4) - ~0xf0f0f0f0 + (2 * 8 / 2);
RET[programIndex] = (x == y) ? 1. : 0.;
}

View File

@@ -6,7 +6,7 @@ export uniform int width() { return programCount; }
export void f_f(uniform float RET[], uniform float aFOO[]) {
float a = aFOO[programIndex];
uniform int x = (170 >> 4) % 5;
static uniform int y = (170 >> 4) % 5;
const static uniform int y = (170 >> 4) % 5;
RET[programIndex] = (x == y) ? 1. : 0.;
}

View File

@@ -6,7 +6,7 @@ export uniform int width() { return programCount; }
export void f_f(uniform float RET[], uniform float aFOO[]) {
float a = aFOO[programIndex];
uniform int x = (17 < 2) || (6 >= 5) && (20 >= 20);
static uniform int y = (17 < 2) || (6 >= 5) && (20 >= 20);
const static uniform int y = (17 < 2) || (6 >= 5) && (20 >= 20);
RET[programIndex] = ((x!=0) == (y!=0)) ? 1. : 0.;
}