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