Commit 2cf6fc09 authored by Chad Versace's avatar Chad Versace
Browse files

glsl-1.00: Eliminate occurences of highp in FS tests

Since we cannot be sure if highp is available in an implementation's
fragment shader, replace all occurences of highp with lowp and mediump.

(Note: High precision is not available in the GLSL 1.00 fragment shader unless
GL_FRAGMENT_PRECISION_HIGH is 1.)
parent fd6c9c96
......@@ -15,7 +15,7 @@
#version 100
precision highp bool;
precision lowp bool;
float f() {
return 0.0;
......
......@@ -12,6 +12,6 @@
#version 100
float f() {
highp bool b;
lowp bool b;
return 0.0;
}
......@@ -12,6 +12,6 @@
#version 100
float f() {
highp float x;
mediump float x;
return 0.0;
}
......@@ -11,7 +11,7 @@
#version 100
highp float a[4];
lowp float a[4];
float f() {
return 0.0;
......
......@@ -11,6 +11,6 @@
#version 100
highp float f(lowp int x) {
lowp float f(lowp int x) {
return 0.0;
}
......@@ -11,8 +11,8 @@
#version 100
uniform lowp float x;
in highp float y;
uniform mediump float x;
in lowp float y;
float f() {
return 0.0;
......
......@@ -12,6 +12,6 @@
#version 100
float f() {
highp int x;
lowp int x;
return 0.0;
}
......@@ -12,6 +12,6 @@
#version 100
float f() {
lowp ivec2 v;
mediump ivec2 v;
return 0.0;
}
......@@ -11,7 +11,7 @@
#version 100
highp int a[4];
lowp int a[4];
float f() {
return 0.0;
......
......@@ -11,6 +11,6 @@
#version 100
float f() {
highp int x = highp 1;
lowp int x = lowp 1;
return 0.0;
}
......@@ -11,6 +11,6 @@
#version 100
float f() {
highp float x = highp 0.0;
lowp float x = lowp 0.0;
return 0.0;
}
......@@ -12,6 +12,6 @@
#version 100
float f() {
highp float x = 0.0;
lowp float x = 0.0;
return 0.0;
}
......@@ -12,8 +12,8 @@
#version 100
highp struct s {
highp float a;
lowp struct s {
lowp float a;
};
float f() {
......
......@@ -12,7 +12,7 @@
#version 100
highp struct s {
lowp struct s {
float a;
};
......
......@@ -14,7 +14,7 @@
#version 130
mediump int;
precision mediump int;
float f() {
return 0.0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment