• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1group unspecified_precision "Invalid declarations with unspecified precision"
2
3	case float_partially_specified_fragment
4		version 310 es
5		expect compile_fail
6		vertex ""
7			#version 310 es
8			${VERTEX_DECLARATIONS}
9			void main() {}
10		""
11		fragment ""
12			#version 310 es
13			// no global precision qualifier (e.g. precision mediump float)
14			void main() {
15				mediump float x = 1.0;
16				vec3 y = vec3(x);
17				mediump vec4 z = vec4(y, x);
18			}
19		""
20	end
21
22	case float_fragment
23		version 310 es
24		expect compile_fail
25		vertex ""
26			#version 310 es
27			void main() {}
28		""
29		fragment ""
30			#version 310 es
31			void main() { float v; }
32		""
33	end
34
35	case vec2_fragment
36		version 310 es
37		expect compile_fail
38		vertex ""
39			#version 310 es
40			void main() {}
41		""
42		fragment ""
43			#version 310 es
44			void main() { vec2 v; }
45		""
46	end
47
48	case vec3_fragment
49		version 310 es
50		expect compile_fail
51		vertex ""
52			#version 310 es
53			void main() {}
54		""
55		fragment ""
56			#version 310 es
57			void main() { vec3 v; }
58		""
59	end
60
61	case vec4_fragment
62		version 310 es
63		expect compile_fail
64		vertex ""
65			#version 310 es
66			void main() {}
67		""
68		fragment ""
69			#version 310 es
70			void main() { vec4 v; }
71		""
72	end
73
74	case sampler3D
75		version 310 es
76		expect compile_fail
77		both ""
78			#version 310 es
79			uniform sampler3D samp;
80			void main() {}
81		""
82	end
83
84	case samplerCubeShadow
85		version 310 es
86		expect compile_fail
87		both ""
88			#version 310 es
89			uniform samplerCubeShadow samp;
90			void main() {}
91		""
92	end
93
94	case sampler2DShadow
95		version 310 es
96		expect compile_fail
97		both ""
98			#version 310 es
99			uniform sampler2DShadow samp;
100			void main() {}
101		""
102	end
103
104	case sampler2DArray
105		version 310 es
106		expect compile_fail
107		both ""
108			#version 310 es
109			uniform sampler2DArray samp;
110			void main() {}
111		""
112	end
113
114	case sampler2DArrayShadow
115		version 310 es
116		expect compile_fail
117		both ""
118			#version 310 es
119			uniform sampler2DArrayShadow samp;
120			void main() {}
121		""
122	end
123
124	case isampler2D
125		version 310 es
126		expect compile_fail
127		both ""
128			#version 310 es
129			uniform isampler2D samp;
130			void main() {}
131		""
132	end
133
134	case isampler3D
135		version 310 es
136		expect compile_fail
137		both ""
138			#version 310 es
139			uniform isampler3D samp;
140			void main() {}
141		""
142	end
143
144	case isamplerCube
145		version 310 es
146		expect compile_fail
147		both ""
148			#version 310 es
149			uniform isamplerCube samp;
150			void main() {}
151		""
152	end
153
154	case isampler2DArray
155		version 310 es
156		expect compile_fail
157		both ""
158			#version 310 es
159			uniform isampler2DArray samp;
160			void main() {}
161		""
162	end
163
164	case usampler2D
165		version 310 es
166		expect compile_fail
167		both ""
168			#version 310 es
169			uniform usampler2D samp;
170			void main() {}
171		""
172	end
173
174	case usampler3D
175		version 310 es
176		expect compile_fail
177		both ""
178			#version 310 es
179			uniform usampler3D samp;
180			void main() {}
181		""
182	end
183
184	case usamplerCube
185		version 310 es
186		expect compile_fail
187		both ""
188			#version 310 es
189			uniform usamplerCube samp;
190			void main() {}
191		""
192	end
193
194	case usampler2DArray
195		version 310 es
196		expect compile_fail
197		both ""
198			#version 310 es
199			uniform usampler2DArray samp;
200			void main() {}
201		""
202	end
203
204end # unspecified_precision
205