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