summaryrefslogtreecommitdiff
path: root/tests/spec/glsl-es-1.00/compiler/precision-qualifiers/precision-fs-highp-01.frag
blob: 7540d3004bbddad428f9cd49a99a84bacedba9ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// [config]
// expect_result: pass
// glsl_version: 1.00
// [end config]
//
// If high precision is available in the fragment shader, then it should be
// legal to use it.
//
// From section 4.5.4 of the GLSL 1.00 spec:
//     "The built-in macro GL_FRAGMENT_PRECISION_HIGH is defined to one on
//     systems supporting highp precision in the fragment language
//         #define GL_FRAGMENT_PRECISION_HIGH 1
//     and is not defined on systems not supporting highp precision in the
//     fragment language."

#version 100

#ifdef GL_FRAGMENT_PRECISION_HIGH
highp float x;
#endif

float f() {
	return 0.0;
}