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