glsl: Add front-end support for GLSL 1.30's roundEven built-in.
[mesa.git] / src / glsl / builtins / profiles / 130.vert
1 #version 130
2 /*
3 * 8.1 - Angle and Trigonometry Functions
4 */
5 float radians(float degrees);
6 vec2 radians(vec2 degrees);
7 vec3 radians(vec3 degrees);
8 vec4 radians(vec4 degrees);
9
10 float degrees(float radians);
11 vec2 degrees(vec2 radians);
12 vec3 degrees(vec3 radians);
13 vec4 degrees(vec4 radians);
14
15 float sin(float angle);
16 vec2 sin(vec2 angle);
17 vec3 sin(vec3 angle);
18 vec4 sin(vec4 angle);
19
20 float cos(float angle);
21 vec2 cos(vec2 angle);
22 vec3 cos(vec3 angle);
23 vec4 cos(vec4 angle);
24
25 float tan(float angle);
26 vec2 tan(vec2 angle);
27 vec3 tan(vec3 angle);
28 vec4 tan(vec4 angle);
29
30 float asin(float angle);
31 vec2 asin(vec2 angle);
32 vec3 asin(vec3 angle);
33 vec4 asin(vec4 angle);
34
35 float acos(float angle);
36 vec2 acos(vec2 angle);
37 vec3 acos(vec3 angle);
38 vec4 acos(vec4 angle);
39
40 float atan(float y, float x);
41 vec2 atan(vec2 y, vec2 x);
42 vec3 atan(vec3 y, vec3 x);
43 vec4 atan(vec4 y, vec4 x);
44
45 float atan(float y_over_x);
46 vec2 atan(vec2 y_over_x);
47 vec3 atan(vec3 y_over_x);
48 vec4 atan(vec4 y_over_x);
49
50 float sinh(float x);
51 vec2 sinh(vec2 x);
52 vec3 sinh(vec3 x);
53 vec4 sinh(vec4 x);
54
55 float cosh(float x);
56 vec2 cosh(vec2 x);
57 vec3 cosh(vec3 x);
58 vec4 cosh(vec4 x);
59
60 float tanh(float x);
61 vec2 tanh(vec2 x);
62 vec3 tanh(vec3 x);
63 vec4 tanh(vec4 x);
64
65 #if 0
66 float asinh(float x);
67 vec2 asinh(vec2 x);
68 vec3 asinh(vec3 x);
69 vec4 asinh(vec4 x);
70
71 float acosh(float x);
72 vec2 acosh(vec2 x);
73 vec3 acosh(vec3 x);
74 vec4 acosh(vec4 x);
75
76 float atanh(float x);
77 vec2 atanh(vec2 x);
78 vec3 atanh(vec3 x);
79 vec4 atanh(vec4 x);
80 #endif
81
82 /*
83 * 8.2 - Exponential Functions
84 */
85 float pow(float x, float y);
86 vec2 pow(vec2 x, vec2 y);
87 vec3 pow(vec3 x, vec3 y);
88 vec4 pow(vec4 x, vec4 y);
89
90 float exp(float x);
91 vec2 exp(vec2 x);
92 vec3 exp(vec3 x);
93 vec4 exp(vec4 x);
94
95 float log(float x);
96 vec2 log(vec2 x);
97 vec3 log(vec3 x);
98 vec4 log(vec4 x);
99
100 float exp2(float x);
101 vec2 exp2(vec2 x);
102 vec3 exp2(vec3 x);
103 vec4 exp2(vec4 x);
104
105 float log2(float x);
106 vec2 log2(vec2 x);
107 vec3 log2(vec3 x);
108 vec4 log2(vec4 x);
109
110 float sqrt(float x);
111 vec2 sqrt(vec2 x);
112 vec3 sqrt(vec3 x);
113 vec4 sqrt(vec4 x);
114
115 float inversesqrt(float x);
116 vec2 inversesqrt(vec2 x);
117 vec3 inversesqrt(vec3 x);
118 vec4 inversesqrt(vec4 x);
119
120 /*
121 * 8.3 - Common Functions
122 */
123 float abs(float x);
124 vec2 abs(vec2 x);
125 vec3 abs(vec3 x);
126 vec4 abs(vec4 x);
127 int abs(int x);
128 ivec2 abs(ivec2 x);
129 ivec3 abs(ivec3 x);
130 ivec4 abs(ivec4 x);
131
132 float sign(float x);
133 vec2 sign(vec2 x);
134 vec3 sign(vec3 x);
135 vec4 sign(vec4 x);
136 int sign(int x);
137 ivec2 sign(ivec2 x);
138 ivec3 sign(ivec3 x);
139 ivec4 sign(ivec4 x);
140
141 float floor(float x);
142 vec2 floor(vec2 x);
143 vec3 floor(vec3 x);
144 vec4 floor(vec4 x);
145
146 float trunc(float x);
147 vec2 trunc(vec2 x);
148 vec3 trunc(vec3 x);
149 vec4 trunc(vec4 x);
150
151 float roundEven(float x);
152 vec2 roundEven(vec2 x);
153 vec3 roundEven(vec3 x);
154 vec4 roundEven(vec4 x);
155
156 float ceil(float x);
157 vec2 ceil(vec2 x);
158 vec3 ceil(vec3 x);
159 vec4 ceil(vec4 x);
160
161 float fract(float x);
162 vec2 fract(vec2 x);
163 vec3 fract(vec3 x);
164 vec4 fract(vec4 x);
165
166 float mod(float x, float y);
167 vec2 mod(vec2 x, float y);
168 vec3 mod(vec3 x, float y);
169 vec4 mod(vec4 x, float y);
170
171 vec2 mod(vec2 x, vec2 y);
172 vec3 mod(vec3 x, vec3 y);
173 vec4 mod(vec4 x, vec4 y);
174
175 float min(float x, float y);
176 vec2 min(vec2 x, vec2 y);
177 vec3 min(vec3 x, vec3 y);
178 vec4 min(vec4 x, vec4 y);
179
180 vec2 min(vec2 x, float y);
181 vec3 min(vec3 x, float y);
182 vec4 min(vec4 x, float y);
183
184 int min(int x, int y);
185 ivec2 min(ivec2 x, ivec2 y);
186 ivec3 min(ivec3 x, ivec3 y);
187 ivec4 min(ivec4 x, ivec4 y);
188
189 ivec2 min(ivec2 x, int y);
190 ivec3 min(ivec3 x, int y);
191 ivec4 min(ivec4 x, int y);
192
193 uint min(uint x, uint y);
194 uvec2 min(uvec2 x, uvec2 y);
195 uvec3 min(uvec3 x, uvec3 y);
196 uvec4 min(uvec4 x, uvec4 y);
197
198 uvec2 min(uvec2 x, uint y);
199 uvec3 min(uvec3 x, uint y);
200 uvec4 min(uvec4 x, uint y);
201
202 float max(float x, float y);
203 vec2 max(vec2 x, vec2 y);
204 vec3 max(vec3 x, vec3 y);
205 vec4 max(vec4 x, vec4 y);
206
207 vec2 max(vec2 x, float y);
208 vec3 max(vec3 x, float y);
209 vec4 max(vec4 x, float y);
210
211 int max(int x, int y);
212 ivec2 max(ivec2 x, ivec2 y);
213 ivec3 max(ivec3 x, ivec3 y);
214 ivec4 max(ivec4 x, ivec4 y);
215
216 ivec2 max(ivec2 x, int y);
217 ivec3 max(ivec3 x, int y);
218 ivec4 max(ivec4 x, int y);
219
220 uint max(uint x, uint y);
221 uvec2 max(uvec2 x, uvec2 y);
222 uvec3 max(uvec3 x, uvec3 y);
223 uvec4 max(uvec4 x, uvec4 y);
224
225 uvec2 max(uvec2 x, uint y);
226 uvec3 max(uvec3 x, uint y);
227 uvec4 max(uvec4 x, uint y);
228
229 float clamp(float x, float minVal, float maxVal);
230 vec2 clamp(vec2 x, vec2 minVal, vec2 maxVal);
231 vec3 clamp(vec3 x, vec3 minVal, vec3 maxVal);
232 vec4 clamp(vec4 x, vec4 minVal, vec4 maxVal);
233
234 vec2 clamp(vec2 x, float minVal, float maxVal);
235 vec3 clamp(vec3 x, float minVal, float maxVal);
236 vec4 clamp(vec4 x, float minVal, float maxVal);
237
238 int clamp(int x, int minVal, int maxVal);
239 ivec2 clamp(ivec2 x, ivec2 minVal, ivec2 maxVal);
240 ivec3 clamp(ivec3 x, ivec3 minVal, ivec3 maxVal);
241 ivec4 clamp(ivec4 x, ivec4 minVal, ivec4 maxVal);
242
243 ivec2 clamp(ivec2 x, int minVal, int maxVal);
244 ivec3 clamp(ivec3 x, int minVal, int maxVal);
245 ivec4 clamp(ivec4 x, int minVal, int maxVal);
246
247 uint clamp(uint x, uint minVal, uint maxVal);
248 uvec2 clamp(uvec2 x, uvec2 minVal, uvec2 maxVal);
249 uvec3 clamp(uvec3 x, uvec3 minVal, uvec3 maxVal);
250 uvec4 clamp(uvec4 x, uvec4 minVal, uvec4 maxVal);
251
252 uvec2 clamp(uvec2 x, uint minVal, uint maxVal);
253 uvec3 clamp(uvec3 x, uint minVal, uint maxVal);
254 uvec4 clamp(uvec4 x, uint minVal, uint maxVal);
255
256 float mix(float x, float y, float a);
257 vec2 mix(vec2 x, vec2 y, vec2 a);
258 vec3 mix(vec3 x, vec3 y, vec3 a);
259 vec4 mix(vec4 x, vec4 y, vec4 a);
260
261 vec2 mix(vec2 x, vec2 y, float a);
262 vec3 mix(vec3 x, vec3 y, float a);
263 vec4 mix(vec4 x, vec4 y, float a);
264
265 float step(float edge, float x);
266 vec2 step(vec2 edge, vec2 x);
267 vec3 step(vec3 edge, vec3 x);
268 vec4 step(vec4 edge, vec4 x);
269
270 vec2 step(float edge, vec2 x);
271 vec3 step(float edge, vec3 x);
272 vec4 step(float edge, vec4 x);
273
274 float smoothstep(float edge0, float edge1, float x);
275 vec2 smoothstep(vec2 edge0, vec2 edge1, vec2 x);
276 vec3 smoothstep(vec3 edge0, vec3 edge1, vec3 x);
277 vec4 smoothstep(vec4 edge0, vec4 edge1, vec4 x);
278
279 vec2 smoothstep(float edge0, float edge1, vec2 x);
280 vec3 smoothstep(float edge0, float edge1, vec3 x);
281 vec4 smoothstep(float edge0, float edge1, vec4 x);
282
283 #if 0
284 bool isnan(float x);
285 bvec2 isnan(vec2 x);
286 bvec3 isnan(vec3 x);
287 bvec4 isnan(vec4 x);
288
289 bool isinf(float x);
290 bvec2 isinf(vec2 x);
291 bvec3 isinf(vec3 x);
292 bvec4 isinf(vec4 x);
293 #endif
294
295 /*
296 * 8.4 - Geometric Functions
297 */
298 float length(float x);
299 float length(vec2 x);
300 float length(vec3 x);
301 float length(vec4 x);
302
303 float distance(float p0, float p1);
304 float distance(vec2 p0, vec2 p1);
305 float distance(vec3 p0, vec3 p1);
306 float distance(vec4 p0, vec4 p1);
307
308 float dot(float x, float y);
309 float dot(vec2 x, vec2 y);
310 float dot(vec3 x, vec3 y);
311 float dot(vec4 x, vec4 y);
312
313 vec3 cross(vec3 x, vec3 y);
314
315 float normalize(float x);
316 vec2 normalize(vec2 x);
317 vec3 normalize(vec3 x);
318 vec4 normalize(vec4 x);
319
320 vec4 ftransform();
321
322 float faceforward(float N, float I, float Nref);
323 vec2 faceforward(vec2 N, vec2 I, vec2 Nref);
324 vec3 faceforward(vec3 N, vec3 I, vec3 Nref);
325 vec4 faceforward(vec4 N, vec4 I, vec4 Nref);
326
327 float reflect(float I, float N);
328 vec2 reflect(vec2 I, vec2 N);
329 vec3 reflect(vec3 I, vec3 N);
330 vec4 reflect(vec4 I, vec4 N);
331
332 float refract(float I, float N, float eta);
333 vec2 refract(vec2 I, vec2 N, float eta);
334 vec3 refract(vec3 I, vec3 N, float eta);
335 vec4 refract(vec4 I, vec4 N, float eta);
336
337
338 /*
339 * 8.5 - Matrix Functions
340 */
341 mat2 matrixCompMult(mat2 x, mat2 y);
342 mat3 matrixCompMult(mat3 x, mat3 y);
343 mat4 matrixCompMult(mat4 x, mat4 y);
344 mat2x3 matrixCompMult(mat2x3 x, mat2x3 y);
345 mat2x4 matrixCompMult(mat2x4 x, mat2x4 y);
346 mat3x2 matrixCompMult(mat3x2 x, mat3x2 y);
347 mat3x4 matrixCompMult(mat3x4 x, mat3x4 y);
348 mat4x2 matrixCompMult(mat4x2 x, mat4x2 y);
349 mat4x3 matrixCompMult(mat4x3 x, mat4x3 y);
350
351 mat2 outerProduct(vec2 c, vec2 r);
352 mat3 outerProduct(vec3 c, vec3 r);
353 mat4 outerProduct(vec4 c, vec4 r);
354
355 mat2x3 outerProduct(vec3 c, vec2 r);
356 mat3x2 outerProduct(vec2 c, vec3 r);
357
358 mat2x4 outerProduct(vec4 c, vec2 r);
359 mat4x2 outerProduct(vec2 c, vec4 r);
360
361 mat3x4 outerProduct(vec4 c, vec3 r);
362 mat4x3 outerProduct(vec3 c, vec4 r);
363
364 mat2 transpose(mat2 m);
365 mat3 transpose(mat3 m);
366 mat4 transpose(mat4 m);
367
368 mat2x3 transpose(mat3x2 m);
369 mat3x2 transpose(mat2x3 m);
370
371 mat2x4 transpose(mat4x2 m);
372 mat4x2 transpose(mat2x4 m);
373
374 mat3x4 transpose(mat4x3 m);
375 mat4x3 transpose(mat3x4 m);
376
377 /*
378 * 8.6 - Vector Relational Functions
379 */
380 bvec2 lessThan( vec2 x, vec2 y);
381 bvec3 lessThan( vec3 x, vec3 y);
382 bvec4 lessThan( vec4 x, vec4 y);
383 bvec2 lessThan(ivec2 x, ivec2 y);
384 bvec3 lessThan(ivec3 x, ivec3 y);
385 bvec4 lessThan(ivec4 x, ivec4 y);
386 bvec2 lessThan(uvec2 x, uvec2 y);
387 bvec3 lessThan(uvec3 x, uvec3 y);
388 bvec4 lessThan(uvec4 x, uvec4 y);
389
390 bvec2 lessThanEqual( vec2 x, vec2 y);
391 bvec3 lessThanEqual( vec3 x, vec3 y);
392 bvec4 lessThanEqual( vec4 x, vec4 y);
393 bvec2 lessThanEqual(ivec2 x, ivec2 y);
394 bvec3 lessThanEqual(ivec3 x, ivec3 y);
395 bvec4 lessThanEqual(ivec4 x, ivec4 y);
396 bvec2 lessThanEqual(uvec2 x, uvec2 y);
397 bvec3 lessThanEqual(uvec3 x, uvec3 y);
398 bvec4 lessThanEqual(uvec4 x, uvec4 y);
399
400 bvec2 greaterThan( vec2 x, vec2 y);
401 bvec3 greaterThan( vec3 x, vec3 y);
402 bvec4 greaterThan( vec4 x, vec4 y);
403 bvec2 greaterThan(ivec2 x, ivec2 y);
404 bvec3 greaterThan(ivec3 x, ivec3 y);
405 bvec4 greaterThan(ivec4 x, ivec4 y);
406 bvec2 greaterThan(uvec2 x, uvec2 y);
407 bvec3 greaterThan(uvec3 x, uvec3 y);
408 bvec4 greaterThan(uvec4 x, uvec4 y);
409
410 bvec2 greaterThanEqual( vec2 x, vec2 y);
411 bvec3 greaterThanEqual( vec3 x, vec3 y);
412 bvec4 greaterThanEqual( vec4 x, vec4 y);
413 bvec2 greaterThanEqual(ivec2 x, ivec2 y);
414 bvec3 greaterThanEqual(ivec3 x, ivec3 y);
415 bvec4 greaterThanEqual(ivec4 x, ivec4 y);
416 bvec2 greaterThanEqual(uvec2 x, uvec2 y);
417 bvec3 greaterThanEqual(uvec3 x, uvec3 y);
418 bvec4 greaterThanEqual(uvec4 x, uvec4 y);
419
420 bvec2 equal( vec2 x, vec2 y);
421 bvec3 equal( vec3 x, vec3 y);
422 bvec4 equal( vec4 x, vec4 y);
423 bvec2 equal(ivec2 x, ivec2 y);
424 bvec3 equal(ivec3 x, ivec3 y);
425 bvec4 equal(ivec4 x, ivec4 y);
426 bvec2 equal(uvec2 x, uvec2 y);
427 bvec3 equal(uvec3 x, uvec3 y);
428 bvec4 equal(uvec4 x, uvec4 y);
429 bvec2 equal(bvec2 x, bvec2 y);
430 bvec3 equal(bvec3 x, bvec3 y);
431 bvec4 equal(bvec4 x, bvec4 y);
432
433 bvec2 notEqual( vec2 x, vec2 y);
434 bvec3 notEqual( vec3 x, vec3 y);
435 bvec4 notEqual( vec4 x, vec4 y);
436 bvec2 notEqual(ivec2 x, ivec2 y);
437 bvec3 notEqual(ivec3 x, ivec3 y);
438 bvec4 notEqual(ivec4 x, ivec4 y);
439 bvec2 notEqual(uvec2 x, uvec2 y);
440 bvec3 notEqual(uvec3 x, uvec3 y);
441 bvec4 notEqual(uvec4 x, uvec4 y);
442 bvec2 notEqual(bvec2 x, bvec2 y);
443 bvec3 notEqual(bvec3 x, bvec3 y);
444 bvec4 notEqual(bvec4 x, bvec4 y);
445
446 bool any(bvec2 x);
447 bool any(bvec3 x);
448 bool any(bvec4 x);
449
450 bool all(bvec2 x);
451 bool all(bvec3 x);
452 bool all(bvec4 x);
453
454 bvec2 not(bvec2 x);
455 bvec3 not(bvec3 x);
456 bvec4 not(bvec4 x);
457
458 /*
459 * 8.7 - Texture Lookup Functions
460 */
461
462 #if 0
463 /* textureSize */
464 int textureSize( sampler1D sampler, int lod);
465 int textureSize(isampler1D sampler, int lod);
466 int textureSize(usampler1D sampler, int lod);
467
468 ivec2 textureSize( sampler2D sampler, int lod);
469 ivec2 textureSize(isampler2D sampler, int lod);
470 ivec2 textureSize(usampler2D sampler, int lod);
471
472 ivec3 textureSize( sampler3D sampler, int lod);
473 ivec3 textureSize(isampler3D sampler, int lod);
474 ivec3 textureSize(usampler3D sampler, int lod);
475
476 ivec2 textureSize( samplerCube sampler, int lod);
477 ivec2 textureSize(isamplerCube sampler, int lod);
478 ivec2 textureSize(usamplerCube sampler, int lod);
479
480 int textureSize(sampler1DShadow sampler, int lod);
481 ivec2 textureSize(sampler2DShadow sampler, int lod);
482 ivec2 textureSize(samplerCubeShadow sampler, int lod);
483
484 ivec2 textureSize( sampler1DArray sampler, int lod);
485 ivec2 textureSize(isampler1DArray sampler, int lod);
486 ivec2 textureSize(usampler1DArray sampler, int lod);
487 ivec3 textureSize( sampler2DArray sampler, int lod);
488 ivec2 textureSize(isampler2DArray sampler, int lod);
489 ivec2 textureSize(usampler2DArray sampler, int lod);
490
491 ivec2 textureSize(sampler1DArrayShadow sampler, int lod);
492 ivec3 textureSize(sampler2DArrayShadow sampler, int lod);
493 #endif
494
495 /* texture - no bias */
496 vec4 texture( sampler1D sampler, float P);
497 ivec4 texture(isampler1D sampler, float P);
498 uvec4 texture(usampler1D sampler, float P);
499
500 vec4 texture( sampler2D sampler, vec2 P);
501 ivec4 texture(isampler2D sampler, vec2 P);
502 uvec4 texture(usampler2D sampler, vec2 P);
503
504 vec4 texture( sampler3D sampler, vec3 P);
505 ivec4 texture(isampler3D sampler, vec3 P);
506 uvec4 texture(usampler3D sampler, vec3 P);
507
508 vec4 texture( samplerCube sampler, vec3 P);
509 ivec4 texture(isamplerCube sampler, vec3 P);
510 uvec4 texture(usamplerCube sampler, vec3 P);
511
512 float texture(sampler1DShadow sampler, vec3 P);
513 float texture(sampler2DShadow sampler, vec3 P);
514 float texture(samplerCubeShadow sampler, vec4 P);
515
516 vec4 texture( sampler1DArray sampler, vec2 P);
517 ivec4 texture(isampler1DArray sampler, vec2 P);
518 uvec4 texture(usampler1DArray sampler, vec2 P);
519
520 vec4 texture( sampler2DArray sampler, vec3 P);
521 ivec4 texture(isampler2DArray sampler, vec3 P);
522 uvec4 texture(usampler2DArray sampler, vec3 P);
523
524 float texture(sampler1DArrayShadow sampler, vec3 P);
525 float texture(sampler2DArrayShadow sampler, vec4 P);
526
527 /* texture - bias variants */
528 vec4 texture( sampler1D sampler, float P, float bias);
529 ivec4 texture(isampler1D sampler, float P, float bias);
530 uvec4 texture(usampler1D sampler, float P, float bias);
531
532 vec4 texture( sampler2D sampler, vec2 P, float bias);
533 ivec4 texture(isampler2D sampler, vec2 P, float bias);
534 uvec4 texture(usampler2D sampler, vec2 P, float bias);
535
536 vec4 texture( sampler3D sampler, vec3 P, float bias);
537 ivec4 texture(isampler3D sampler, vec3 P, float bias);
538 uvec4 texture(usampler3D sampler, vec3 P, float bias);
539
540 vec4 texture( samplerCube sampler, vec3 P, float bias);
541 ivec4 texture(isamplerCube sampler, vec3 P, float bias);
542 uvec4 texture(usamplerCube sampler, vec3 P, float bias);
543
544 float texture(sampler1DShadow sampler, vec3 P, float bias);
545 float texture(sampler2DShadow sampler, vec3 P, float bias);
546 float texture(samplerCubeShadow sampler, vec4 P, float bias);
547
548 vec4 texture( sampler1DArray sampler, vec2 P, float bias);
549 ivec4 texture(isampler1DArray sampler, vec2 P, float bias);
550 uvec4 texture(usampler1DArray sampler, vec2 P, float bias);
551
552 vec4 texture( sampler2DArray sampler, vec3 P, float bias);
553 ivec4 texture(isampler2DArray sampler, vec3 P, float bias);
554 uvec4 texture(usampler2DArray sampler, vec3 P, float bias);
555
556 float texture(sampler1DArrayShadow sampler, vec3 P, float bias);
557
558 /* textureProj - no bias */
559 vec4 textureProj( sampler1D sampler, vec2 P);
560 ivec4 textureProj(isampler1D sampler, vec2 P);
561 uvec4 textureProj(usampler1D sampler, vec2 P);
562 vec4 textureProj( sampler1D sampler, vec4 P);
563 ivec4 textureProj(isampler1D sampler, vec4 P);
564 uvec4 textureProj(usampler1D sampler, vec4 P);
565
566 vec4 textureProj( sampler2D sampler, vec3 P);
567 ivec4 textureProj(isampler2D sampler, vec3 P);
568 uvec4 textureProj(usampler2D sampler, vec3 P);
569 vec4 textureProj( sampler2D sampler, vec4 P);
570 ivec4 textureProj(isampler2D sampler, vec4 P);
571 uvec4 textureProj(usampler2D sampler, vec4 P);
572
573 vec4 textureProj( sampler3D sampler, vec4 P);
574 ivec4 textureProj(isampler3D sampler, vec4 P);
575 uvec4 textureProj(usampler3D sampler, vec4 P);
576
577 float textureProj(sampler1DShadow sampler, vec4 P);
578 float textureProj(sampler2DShadow sampler, vec4 P);
579
580 /* textureProj - bias variants */
581 vec4 textureProj( sampler1D sampler, vec2 P, float bias);
582 ivec4 textureProj(isampler1D sampler, vec2 P, float bias);
583 uvec4 textureProj(usampler1D sampler, vec2 P, float bias);
584 vec4 textureProj( sampler1D sampler, vec4 P, float bias);
585 ivec4 textureProj(isampler1D sampler, vec4 P, float bias);
586 uvec4 textureProj(usampler1D sampler, vec4 P, float bias);
587
588 vec4 textureProj( sampler2D sampler, vec3 P, float bias);
589 ivec4 textureProj(isampler2D sampler, vec3 P, float bias);
590 uvec4 textureProj(usampler2D sampler, vec3 P, float bias);
591 vec4 textureProj( sampler2D sampler, vec4 P, float bias);
592 ivec4 textureProj(isampler2D sampler, vec4 P, float bias);
593 uvec4 textureProj(usampler2D sampler, vec4 P, float bias);
594
595 vec4 textureProj( sampler3D sampler, vec4 P, float bias);
596 ivec4 textureProj(isampler3D sampler, vec4 P, float bias);
597 uvec4 textureProj(usampler3D sampler, vec4 P, float bias);
598
599 float textureProj(sampler1DShadow sampler, vec4 P, float bias);
600 float textureProj(sampler2DShadow sampler, vec4 P, float bias);
601
602 /* textureLod */
603 vec4 textureLod( sampler1D sampler, float P, float lod);
604 ivec4 textureLod(isampler1D sampler, float P, float lod);
605 uvec4 textureLod(usampler1D sampler, float P, float lod);
606
607 vec4 textureLod( sampler2D sampler, vec2 P, float lod);
608 ivec4 textureLod(isampler2D sampler, vec2 P, float lod);
609 uvec4 textureLod(usampler2D sampler, vec2 P, float lod);
610
611 vec4 textureLod( sampler3D sampler, vec3 P, float lod);
612 ivec4 textureLod(isampler3D sampler, vec3 P, float lod);
613 uvec4 textureLod(usampler3D sampler, vec3 P, float lod);
614
615 vec4 textureLod( samplerCube sampler, vec3 P, float lod);
616 ivec4 textureLod(isamplerCube sampler, vec3 P, float lod);
617 uvec4 textureLod(usamplerCube sampler, vec3 P, float lod);
618
619 float textureLod(sampler1DShadow sampler, vec3 P, float lod);
620 float textureLod(sampler2DShadow sampler, vec3 P, float lod);
621
622 vec4 textureLod( sampler1DArray sampler, vec2 P, float lod);
623 ivec4 textureLod(isampler1DArray sampler, vec2 P, float lod);
624 uvec4 textureLod(usampler1DArray sampler, vec2 P, float lod);
625
626 vec4 textureLod( sampler2DArray sampler, vec3 P, float lod);
627 ivec4 textureLod(isampler2DArray sampler, vec3 P, float lod);
628 uvec4 textureLod(usampler2DArray sampler, vec3 P, float lod);
629
630 float textureLod(sampler1DArrayShadow sampler, vec3 P, float lod);
631
632 #if 0
633 /* textureOffset - no bias */
634 vec4 textureOffset( sampler1D sampler, float P, int offset);
635 ivec4 textureOffset(isampler1D sampler, float P, int offset);
636 uvec4 textureOffset(usampler1D sampler, float P, int offset);
637
638 vec4 textureOffset( sampler2D sampler, vec2 P, ivec2 offset);
639 ivec4 textureOffset(isampler2D sampler, vec2 P, ivec2 offset);
640 uvec4 textureOffset(usampler2D sampler, vec2 P, ivec2 offset);
641
642 vec4 textureOffset( sampler3D sampler, vec3 P, ivec3 offset);
643 ivec4 textureOffset(isampler3D sampler, vec3 P, ivec3 offset);
644 uvec4 textureOffset(usampler3D sampler, vec3 P, ivec3 offset);
645
646 float textureOffset(sampler1DShadow sampler, vec3 P, int offset);
647 float textureOffset(sampler2DShadow sampler, vec3 P, ivec2 offset);
648
649 vec4 textureOffset( sampler1DArray sampler, vec2 P, int offset);
650 ivec4 textureOffset(isampler1DArray sampler, vec2 P, int offset);
651 uvec4 textureOffset(usampler1DArray sampler, vec2 P, int offset);
652
653 vec4 textureOffset( sampler2DArray sampler, vec3 P, ivec2 offset);
654 ivec4 textureOffset(isampler2DArray sampler, vec3 P, ivec2 offset);
655 uvec4 textureOffset(usampler2DArray sampler, vec3 P, ivec2 offset);
656
657 float textureOffset(sampler1DArrayShadow sampler, vec3 P, int offset);
658
659 /* textureOffset - bias variants */
660 vec4 textureOffset( sampler1D sampler, float P, int offset, float bias);
661 ivec4 textureOffset(isampler1D sampler, float P, int offset, float bias);
662 uvec4 textureOffset(usampler1D sampler, float P, int offset, float bias);
663
664 vec4 textureOffset( sampler2D sampler, vec2 P, ivec2 offset, float bias);
665 ivec4 textureOffset(isampler2D sampler, vec2 P, ivec2 offset, float bias);
666 uvec4 textureOffset(usampler2D sampler, vec2 P, ivec2 offset, float bias);
667
668 vec4 textureOffset( sampler3D sampler, vec3 P, ivec3 offset, float bias);
669 ivec4 textureOffset(isampler3D sampler, vec3 P, ivec3 offset, float bias);
670 uvec4 textureOffset(usampler3D sampler, vec3 P, ivec3 offset, float bias);
671
672 float textureOffset(sampler1DShadow sampler, vec3 P, int offset, float bias);
673 float textureOffset(sampler2DShadow sampler, vec3 P, ivec2 offset, float bias);
674
675 vec4 textureOffset( sampler1DArray sampler, vec2 P, int offset, float bias);
676 ivec4 textureOffset(isampler1DArray sampler, vec2 P, int offset, float bias);
677 uvec4 textureOffset(usampler1DArray sampler, vec2 P, int offset, float bias);
678
679 vec4 textureOffset( sampler2DArray sampler, vec3 P, ivec2 offset, float bias);
680 ivec4 textureOffset(isampler2DArray sampler, vec3 P, ivec2 offset, float bias);
681 uvec4 textureOffset(usampler2DArray sampler, vec3 P, ivec2 offset, float bias);
682
683 float textureOffset(sampler1DArrayShadow samp, vec3 P, int offset, float bias);
684 #endif
685
686 /* texelFetch */
687 vec4 texelFetch( sampler1D sampler, int P, int lod);
688 ivec4 texelFetch(isampler1D sampler, int P, int lod);
689 uvec4 texelFetch(usampler1D sampler, int P, int lod);
690
691 vec4 texelFetch( sampler2D sampler, ivec2 P, int lod);
692 ivec4 texelFetch(isampler2D sampler, ivec2 P, int lod);
693 uvec4 texelFetch(usampler2D sampler, ivec2 P, int lod);
694
695 vec4 texelFetch( sampler3D sampler, ivec3 P, int lod);
696 ivec4 texelFetch(isampler3D sampler, ivec3 P, int lod);
697 uvec4 texelFetch(usampler3D sampler, ivec3 P, int lod);
698
699 vec4 texelFetch( sampler1DArray sampler, ivec2 P, int lod);
700 ivec4 texelFetch(isampler1DArray sampler, ivec2 P, int lod);
701 uvec4 texelFetch(usampler1DArray sampler, ivec2 P, int lod);
702
703 vec4 texelFetch( sampler2DArray sampler, ivec3 P, int lod);
704 ivec4 texelFetch(isampler2DArray sampler, ivec3 P, int lod);
705 uvec4 texelFetch(usampler2DArray sampler, ivec3 P, int lod);
706
707 #if 0
708 /* texelFetchOffset */
709 vec4 texelFetchOffset( sampler1D sampler, int P, int lod, int offset);
710 ivec4 texelFetchOffset(isampler1D sampler, int P, int lod, int offset);
711 uvec4 texelFetchOffset(usampler1D sampler, int P, int lod, int offset);
712
713 vec4 texelFetchOffset( sampler2D sampler, ivec2 P, int lod, ivec2 offset);
714 ivec4 texelFetchOffset(isampler2D sampler, ivec2 P, int lod, ivec2 offset);
715 uvec4 texelFetchOffset(usampler2D sampler, ivec2 P, int lod, ivec2 offset);
716
717 vec4 texelFetchOffset( sampler3D sampler, ivec3 P, int lod, ivec3 offset);
718 ivec4 texelFetchOffset(isampler3D sampler, ivec3 P, int lod, ivec3 offset);
719 uvec4 texelFetchOffset(usampler3D sampler, ivec3 P, int lod, ivec3 offset);
720
721 vec4 texelFetchOffset( sampler1DArray sampler, ivec2 P, int lod, int offset);
722 ivec4 texelFetchOffset(isampler1DArray sampler, ivec2 P, int lod, int offset);
723 uvec4 texelFetchOffset(usampler1DArray sampler, ivec2 P, int lod, int offset);
724
725 vec4 texelFetchOffset( sampler2DArray sampler, ivec3 P, int lod, ivec2 offset);
726 ivec4 texelFetchOffset(isampler2DArray sampler, ivec3 P, int lod, ivec2 offset);
727 uvec4 texelFetchOffset(usampler2DArray sampler, ivec3 P, int lod, ivec2 offset);
728
729 /* textureProjOffset - no bias */
730 vec4 textureProj( sampler1D sampler, vec2 P, int offset);
731 ivec4 textureProj(isampler1D sampler, vec2 P, int offset);
732 uvec4 textureProj(usampler1D sampler, vec2 P, int offset);
733 vec4 textureProj( sampler1D sampler, vec4 P, int offset);
734 ivec4 textureProj(isampler1D sampler, vec4 P, int offset);
735 uvec4 textureProj(usampler1D sampler, vec4 P, int offset);
736
737 vec4 textureProj( sampler2D sampler, vec3 P, ivec2 offset);
738 ivec4 textureProj(isampler2D sampler, vec3 P, ivec2 offset);
739 uvec4 textureProj(usampler2D sampler, vec3 P, ivec2 offset);
740 vec4 textureProj( sampler2D sampler, vec4 P, ivec2 offset);
741 ivec4 textureProj(isampler2D sampler, vec4 P, ivec2 offset);
742 uvec4 textureProj(usampler2D sampler, vec4 P, ivec2 offset);
743
744 vec4 textureProj( sampler3D sampler, vec4 P, ivec3 offset);
745 ivec4 textureProj(isampler3D sampler, vec4 P, ivec3 offset);
746 uvec4 textureProj(usampler3D sampler, vec4 P, ivec3 offset);
747
748 float textureProj(sampler1DShadow sampler, vec4 P, int offset);
749 float textureProj(sampler2DShadow sampler, vec4 P, ivec2 offset);
750
751 /* textureProjOffset - bias variants */
752 vec4 textureProj( sampler1D sampler, vec2 P, int offset, float bias);
753 ivec4 textureProj(isampler1D sampler, vec2 P, int offset, float bias);
754 uvec4 textureProj(usampler1D sampler, vec2 P, int offset, float bias);
755 vec4 textureProj( sampler1D sampler, vec4 P, int offset, float bias);
756 ivec4 textureProj(isampler1D sampler, vec4 P, int offset, float bias);
757 uvec4 textureProj(usampler1D sampler, vec4 P, int offset, float bias);
758
759 vec4 textureProj( sampler2D sampler, vec3 P, ivec2 offset, float bias);
760 ivec4 textureProj(isampler2D sampler, vec3 P, ivec2 offset, float bias);
761 uvec4 textureProj(usampler2D sampler, vec3 P, ivec2 offset, float bias);
762 vec4 textureProj( sampler2D sampler, vec4 P, ivec2 offset, float bias);
763 ivec4 textureProj(isampler2D sampler, vec4 P, ivec2 offset, float bias);
764 uvec4 textureProj(usampler2D sampler, vec4 P, ivec2 offset, float bias);
765
766 vec4 textureProj( sampler3D sampler, vec4 P, ivec3 offset, float bias);
767 ivec4 textureProj(isampler3D sampler, vec4 P, ivec3 offset, float bias);
768 uvec4 textureProj(usampler3D sampler, vec4 P, ivec3 offset, float bias);
769
770 float textureProj(sampler1DShadow sampler, vec4 P, int offset, float bias);
771 float textureProj(sampler2DShadow sampler, vec4 P, ivec2 offset, float bias);
772
773 /* textureLodOffset */
774 vec4 textureLodOffset( sampler1D sampler, float P, float lod, int offset);
775 ivec4 textureLodOffset(isampler1D sampler, float P, float lod, int offset);
776 uvec4 textureLodOffset(usampler1D sampler, float P, float lod, int offset);
777
778 vec4 textureLodOffset( sampler2D sampler, vec2 P, float lod, ivec2 offset);
779 ivec4 textureLodOffset(isampler2D sampler, vec2 P, float lod, ivec2 offset);
780 uvec4 textureLodOffset(usampler2D sampler, vec2 P, float lod, ivec2 offset);
781
782 vec4 textureLodOffset( sampler3D sampler, vec3 P, float lod, ivec3 offset);
783 ivec4 textureLodOffset(isampler3D sampler, vec3 P, float lod, ivec3 offset);
784 uvec4 textureLodOffset(usampler3D sampler, vec3 P, float lod, ivec3 offset);
785
786 float textureLodOffset(sampler1DShadow samp, vec3 P, float lod, int offset);
787 float textureLodOffset(sampler2DShadow samp, vec3 P, float lod, ivec2 offset);
788
789 vec4 textureLodOffset( sampler1DArray sampler, vec2 P, float lod, int offset);
790 ivec4 textureLodOffset(isampler1DArray sampler, vec2 P, float lod, int offset);
791 uvec4 textureLodOffset(usampler1DArray sampler, vec2 P, float lod, int offset);
792
793 vec4 textureLodOffset( sampler2DArray samp, vec3 P, float lod, ivec2 offset);
794 ivec4 textureLodOffset(isampler2DArray samp, vec3 P, float lod, ivec2 offset);
795 uvec4 textureLodOffset(usampler2DArray samp, vec3 P, float lod, ivec2 offset);
796
797 float textureLodOffset(sampler1DArrayShadow s, vec3 P, float lod, int offset);
798 #endif
799
800 /* textureProjLod */
801 vec4 textureProjLod( sampler1D sampler, vec2 P, float lod);
802 ivec4 textureProjLod(isampler1D sampler, vec2 P, float lod);
803 uvec4 textureProjLod(usampler1D sampler, vec2 P, float lod);
804 vec4 textureProjLod( sampler1D sampler, vec4 P, float lod);
805 ivec4 textureProjLod(isampler1D sampler, vec4 P, float lod);
806 uvec4 textureProjLod(usampler1D sampler, vec4 P, float lod);
807
808 vec4 textureProjLod( sampler2D sampler, vec3 P, float lod);
809 ivec4 textureProjLod(isampler2D sampler, vec3 P, float lod);
810 uvec4 textureProjLod(usampler2D sampler, vec3 P, float lod);
811 vec4 textureProjLod( sampler2D sampler, vec4 P, float lod);
812 ivec4 textureProjLod(isampler2D sampler, vec4 P, float lod);
813 uvec4 textureProjLod(usampler2D sampler, vec4 P, float lod);
814
815 vec4 textureProjLod( sampler3D sampler, vec4 P, float lod);
816 ivec4 textureProjLod(isampler3D sampler, vec4 P, float lod);
817 uvec4 textureProjLod(usampler3D sampler, vec4 P, float lod);
818
819 float textureProjLod(sampler1DShadow sampler, vec4 P, float lod);
820 float textureProjLod(sampler2DShadow sampler, vec4 P, float lod);
821
822 #if 0
823 /* textureProjLodOffset */
824 vec4 textureProjLodOffset( sampler1D sampler, vec2 P, float lod, int offset);
825 ivec4 textureProjLodOffset(isampler1D sampler, vec2 P, float lod, int offset);
826 uvec4 textureProjLodOffset(usampler1D sampler, vec2 P, float lod, int offset);
827 vec4 textureProjLodOffset( sampler1D sampler, vec4 P, float lod, int offset);
828 ivec4 textureProjLodOffset(isampler1D sampler, vec4 P, float lod, int offset);
829 uvec4 textureProjLodOffset(usampler1D sampler, vec4 P, float lod, int offset);
830
831 vec4 textureProjLodOffset( sampler2D sampler, vec3 P, float lod, ivec2 offset);
832 ivec4 textureProjLodOffset(isampler2D sampler, vec3 P, float lod, ivec2 offset);
833 uvec4 textureProjLodOffset(usampler2D sampler, vec3 P, float lod, ivec2 offset);
834 vec4 textureProjLodOffset( sampler2D sampler, vec4 P, float lod, ivec2 offset);
835 ivec4 textureProjLodOffset(isampler2D sampler, vec4 P, float lod, ivec2 offset);
836 uvec4 textureProjLodOffset(usampler2D sampler, vec4 P, float lod, ivec2 offset);
837
838 vec4 textureProjLodOffset( sampler3D sampler, vec4 P, float lod, ivec3 offset);
839 ivec4 textureProjLodOffset(isampler3D sampler, vec4 P, float lod, ivec3 offset);
840 uvec4 textureProjLodOffset(usampler3D sampler, vec4 P, float lod, ivec3 offset);
841
842 float textureProjLodOffset(sampler1DShadow s, vec4 P, float lod, int offset);
843 float textureProjLodOffset(sampler2DShadow s, vec4 P, float lod, ivec2 offset);
844 #endif
845
846 /* textureGrad */
847 vec4 textureGrad( sampler1D sampler, float P, float dPdx, float dPdy);
848 ivec4 textureGrad(isampler1D sampler, float P, float dPdx, float dPdy);
849 uvec4 textureGrad(usampler1D sampler, float P, float dPdx, float dPdy);
850
851 vec4 textureGrad( sampler2D sampler, vec2 P, vec2 dPdx, vec2 dPdy);
852 ivec4 textureGrad(isampler2D sampler, vec2 P, vec2 dPdx, vec2 dPdy);
853 uvec4 textureGrad(usampler2D sampler, vec2 P, vec2 dPdx, vec2 dPdy);
854
855 vec4 textureGrad( sampler3D sampler, vec3 P, vec3 dPdx, vec3 dPdy);
856 ivec4 textureGrad(isampler3D sampler, vec3 P, vec3 dPdx, vec3 dPdy);
857 uvec4 textureGrad(usampler3D sampler, vec3 P, vec3 dPdx, vec3 dPdy);
858
859 vec4 textureGrad( samplerCube sampler, vec3 P, vec3 dPdx, vec3 dPdy);
860 ivec4 textureGrad(isamplerCube sampler, vec3 P, vec3 dPdx, vec3 dPdy);
861 uvec4 textureGrad(usamplerCube sampler, vec3 P, vec3 dPdx, vec3 dPdy);
862
863 float textureGrad(sampler1DShadow sampler, vec3 P, float dPdx, float dPdy);
864 float textureGrad(sampler2DShadow sampler, vec3 P, vec2 dPdx, vec2 dPdy);
865 float textureGrad(samplerCubeShadow sampler, vec4 P, vec3 dPdx, vec3 dPdy);
866
867 vec4 textureGrad( sampler1DArray sampler, vec2 P, float dPdx, float dPdy);
868 ivec4 textureGrad(isampler1DArray sampler, vec2 P, float dPdx, float dPdy);
869 uvec4 textureGrad(usampler1DArray sampler, vec2 P, float dPdx, float dPdy);
870
871 vec4 textureGrad( sampler2DArray sampler, vec3 P, vec2 dPdx, vec2 dPdy);
872 ivec4 textureGrad(isampler2DArray sampler, vec3 P, vec2 dPdx, vec2 dPdy);
873 uvec4 textureGrad(usampler2DArray sampler, vec3 P, vec2 dPdx, vec2 dPdy);
874
875 float textureGrad(sampler1DArrayShadow sampler, vec3 P, float dPdx, float dPdy);
876 float textureGrad(sampler2DArrayShadow sampler, vec4 P, vec2 dPdx, vec2 dPdy);
877
878 #if 0
879 /* textureGradOffset */
880 vec4 textureGradOffset( sampler1D s, float P, float dx, float dy, int off);
881 ivec4 textureGradOffset(isampler1D s, float P, float dx, float dy, int offset);
882 uvec4 textureGradOffset(usampler1D s, float P, float dx, float dy, int offset);
883
884 vec4 textureGradOffset( sampler2D s, vec2 P, vec2 dx, vec2 dy, ivec2 offset);
885 ivec4 textureGradOffset(isampler2D s, vec2 P, vec2 dx, vec2 dy, ivec2 offset);
886 uvec4 textureGradOffset(usampler2D s, vec2 P, vec2 dx, vec2 dy, ivec2 offset);
887
888 vec4 textureGradOffset( sampler3D s, vec3 P, vec3 dx, vec3 dy, ivec3 offset);
889 ivec4 textureGradOffset(isampler3D s, vec3 P, vec3 dx, vec3 dy, ivec3 offset);
890 uvec4 textureGradOffset(usampler3D s, vec3 P, vec3 dx, vec3 dy, ivec3 offset);
891
892 vec4 textureGradOffset( samplerCube s, vec3 P, vec3 dx, vec3 dy, ivec3 offset);
893 ivec4 textureGradOffset(isamplerCube s, vec3 P, vec3 dx, vec3 dy, ivec3 offset);
894 uvec4 textureGradOffset(usamplerCube s, vec3 P, vec3 dx, vec3 dy, ivec3 offset);
895
896 float textureGradOffset(sampler1DShadow s, vec3 P, float dx, float dy, int off);
897 float textureGradOffset(sampler2DShadow s, vec3 P, vec2 dx, vec2 dy, ivec2 off);
898
899 vec4 textureGradOffset( sampler1DArray s, vec2 P, float dx, float dy, int off);
900 ivec4 textureGradOffset(isampler1DArray s, vec2 P, float dx, float dy, int off);
901 uvec4 textureGradOffset(usampler1DArray s, vec2 P, float dx, float dy, int off);
902
903 vec4 textureGradOffset( sampler2DArray s, vec3 P, vec2 dx, vec2 dy, ivec2 off);
904 ivec4 textureGradOffset(isampler2DArray s, vec3 P, vec2 dx, vec2 dy, ivec2 off);
905 uvec4 textureGradOffset(usampler2DArray s, vec3 P, vec2 dx, vec2 dy, ivec2 off);
906
907 float textureGradOffset(sampler1DArrayShadow s, vec3 P, float dx, float dy, int o);
908 float textureGradOffset(sampler2DArrayShadow s, vec4 P, vec2 dx, vec2 dy, ivec2 o);
909 #endif
910
911 /* textureProjGrad */
912 vec4 textureProjGrad( sampler1D sampler, vec2 P, float dPdx, float dPdy);
913 ivec4 textureProjGrad(isampler1D sampler, vec2 P, float dPdx, float dPdy);
914 uvec4 textureProjGrad(usampler1D sampler, vec2 P, float dPdx, float dPdy);
915 vec4 textureProjGrad( sampler1D sampler, vec4 P, float dPdx, float dPdy);
916 ivec4 textureProjGrad(isampler1D sampler, vec4 P, float dPdx, float dPdy);
917 uvec4 textureProjGrad(usampler1D sampler, vec4 P, float dPdx, float dPdy);
918
919 vec4 textureProjGrad( sampler2D sampler, vec3 P, vec2 dPdx, vec2 dPdy);
920 ivec4 textureProjGrad(isampler2D sampler, vec3 P, vec2 dPdx, vec2 dPdy);
921 uvec4 textureProjGrad(usampler2D sampler, vec3 P, vec2 dPdx, vec2 dPdy);
922 vec4 textureProjGrad( sampler2D sampler, vec4 P, vec2 dPdx, vec2 dPdy);
923 ivec4 textureProjGrad(isampler2D sampler, vec4 P, vec2 dPdx, vec2 dPdy);
924 uvec4 textureProjGrad(usampler2D sampler, vec4 P, vec2 dPdx, vec2 dPdy);
925
926 vec4 textureProjGrad( sampler3D sampler, vec4 P, vec3 dPdx, vec3 dPdy);
927 ivec4 textureProjGrad(isampler3D sampler, vec4 P, vec3 dPdx, vec3 dPdy);
928 uvec4 textureProjGrad(usampler3D sampler, vec4 P, vec3 dPdx, vec3 dPdy);
929
930 float textureProjGrad(sampler1DShadow sampler, vec4 P, float dPdx, float dPdy);
931 float textureProjGrad(sampler2DShadow sampler, vec4 P, vec2 dPdx, vec2 dPdy);
932
933 #if 0
934 /* textureProjGradOffset */
935 vec4 textureProjGradOffset( sampler1D s, vec2 P, float dx, float dy, int off);
936 ivec4 textureProjGradOffset(isampler1D s, vec2 P, float dx, float dy, int off);
937 uvec4 textureProjGradOffset(usampler1D s, vec2 P, float dx, float dy, int off);
938 vec4 textureProjGradOffset( sampler1D s, vec4 P, float dx, float dy, int off);
939 ivec4 textureProjGradOffset(isampler1D s, vec4 P, float dx, float dy, int off);
940 uvec4 textureProjGradOffset(usampler1D s, vec4 P, float dx, float dy, int off);
941
942 vec4 textureProjGradOffset( sampler2D s, vec3 P, vec2 dx, vec2 dy, ivec2 off);
943 ivec4 textureProjGradOffset(isampler2D s, vec3 P, vec2 dx, vec2 dy, ivec2 off);
944 uvec4 textureProjGradOffset(usampler2D s, vec3 P, vec2 dx, vec2 dy, ivec2 off);
945 vec4 textureProjGradOffset( sampler2D s, vec4 P, vec2 dx, vec2 dy, ivec2 off);
946 ivec4 textureProjGradOffset(isampler2D s, vec4 P, vec2 dx, vec2 dy, ivec2 off);
947 uvec4 textureProjGradOffset(usampler2D s, vec4 P, vec2 dx, vec2 dy, ivec2 off);
948
949 vec4 textureProjGradOffset( sampler3D s, vec4 P, vec3 dx, vec3 dy, ivec3 off);
950 ivec4 textureProjGradOffset(isampler3D s, vec4 P, vec3 dx, vec3 dy, ivec3 off);
951 uvec4 textureProjGradOffset(usampler3D s, vec4 P, vec3 dx, vec3 dy, ivec3 off);
952
953 float textureProjGradOffset(sampler1DShadow s, vec4 P, float dx, float dy, int o);
954 float textureProjGradOffset(sampler2DShadow s, vec4 P, vec2 dx, vec2 dy, vec2 o);
955 #endif
956
957 /*
958 * The following texture functions are deprecated:
959 */
960 vec4 texture1D (sampler1D sampler, float coord);
961 vec4 texture1DProj (sampler1D sampler, vec2 coord);
962 vec4 texture1DProj (sampler1D sampler, vec4 coord);
963 vec4 texture1D (sampler1D sampler, float coord, float bias);
964 vec4 texture1DProj (sampler1D sampler, vec2 coord, float bias);
965 vec4 texture1DProj (sampler1D sampler, vec4 coord, float bias);
966 vec4 texture1DLod (sampler1D sampler, float coord, float lod);
967 vec4 texture1DProjLod(sampler1D sampler, vec2 coord, float lod);
968 vec4 texture1DProjLod(sampler1D sampler, vec4 coord, float lod);
969
970 vec4 texture2D (sampler2D sampler, vec2 coord);
971 vec4 texture2DProj (sampler2D sampler, vec3 coord);
972 vec4 texture2DProj (sampler2D sampler, vec4 coord);
973 vec4 texture2D (sampler2D sampler, vec2 coord, float bias);
974 vec4 texture2DProj (sampler2D sampler, vec3 coord, float bias);
975 vec4 texture2DProj (sampler2D sampler, vec4 coord, float bias);
976 vec4 texture2DLod (sampler2D sampler, vec2 coord, float lod);
977 vec4 texture2DProjLod(sampler2D sampler, vec3 coord, float lod);
978 vec4 texture2DProjLod(sampler2D sampler, vec4 coord, float lod);
979
980 vec4 texture3D (sampler3D sampler, vec3 coord);
981 vec4 texture3DProj (sampler3D sampler, vec4 coord);
982 vec4 texture3D (sampler3D sampler, vec3 coord, float bias);
983 vec4 texture3DProj (sampler3D sampler, vec4 coord, float bias);
984 vec4 texture3DLod (sampler3D sampler, vec3 coord, float lod);
985 vec4 texture3DProjLod(sampler3D sampler, vec4 coord, float lod);
986
987 vec4 textureCube (samplerCube sampler, vec3 coord);
988 vec4 textureCube (samplerCube sampler, vec3 coord, float bias);
989 vec4 textureCubeLod (samplerCube sampler, vec3 coord, float lod);
990
991 vec4 shadow1D (sampler1DShadow sampler, vec3 coord);
992 vec4 shadow2D (sampler2DShadow sampler, vec3 coord);
993 vec4 shadow1DProj (sampler1DShadow sampler, vec4 coord);
994 vec4 shadow2DProj (sampler2DShadow sampler, vec4 coord);
995 vec4 shadow1D (sampler1DShadow sampler, vec3 coord, float bias);
996 vec4 shadow2D (sampler2DShadow sampler, vec3 coord, float bias);
997 vec4 shadow1DProj (sampler1DShadow sampler, vec4 coord, float bias);
998 vec4 shadow2DProj (sampler2DShadow sampler, vec4 coord, float bias);
999 vec4 shadow1DLod (sampler1DShadow sampler, vec3 coord, float lod);
1000 vec4 shadow2DLod (sampler2DShadow sampler, vec3 coord, float lod);
1001 vec4 shadow1DProjLod(sampler1DShadow sampler, vec4 coord, float lod);
1002 vec4 shadow2DProjLod(sampler2DShadow sampler, vec4 coord, float lod);
1003
1004 /*
1005 * 8.8 - Fragment Processing Functions (none in vertex shader)
1006 */
1007
1008 /*
1009 * 8.9 - Noise Functions
1010 */
1011 float noise1(float x);
1012 float noise1(vec2 x);
1013 float noise1(vec3 x);
1014 float noise1(vec4 x);
1015
1016 vec2 noise2(float x);
1017 vec2 noise2(vec2 x);
1018 vec2 noise2(vec3 x);
1019 vec2 noise2(vec4 x);
1020
1021 vec3 noise3(float x);
1022 vec3 noise3(vec2 x);
1023 vec3 noise3(vec3 x);
1024 vec3 noise3(vec4 x);
1025
1026 vec4 noise4(float x);
1027 vec4 noise4(vec2 x);
1028 vec4 noise4(vec3 x);
1029 vec4 noise4(vec4 x);