3 * 8.1 - Angle and Trigonometry Functions
5 float radians(float degrees);
6 vec2 radians(vec2 degrees);
7 vec3 radians(vec3 degrees);
8 vec4 radians(vec4 degrees);
10 float degrees(float radians);
11 vec2 degrees(vec2 radians);
12 vec3 degrees(vec3 radians);
13 vec4 degrees(vec4 radians);
15 float sin(float angle);
20 float cos(float angle);
25 float tan(float angle);
30 float asin(float angle);
31 vec2 asin(vec2 angle);
32 vec3 asin(vec3 angle);
33 vec4 asin(vec4 angle);
35 float acos(float angle);
36 vec2 acos(vec2 angle);
37 vec3 acos(vec3 angle);
38 vec4 acos(vec4 angle);
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);
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);
81 * 8.2 - Exponential Functions
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);
113 float inversesqrt(float x);
114 vec2 inversesqrt(vec2 x);
115 vec3 inversesqrt(vec3 x);
116 vec4 inversesqrt(vec4 x);
119 * 8.3 - Common Functions
139 float floor(float x);
144 float trunc(float x);
149 float round(float x);
154 float roundEven(float x);
155 vec2 roundEven(vec2 x);
156 vec3 roundEven(vec3 x);
157 vec4 roundEven(vec4 x);
164 float fract(float x);
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);
174 vec2 mod(vec2 x, vec2 y);
175 vec3 mod(vec3 x, vec3 y);
176 vec4 mod(vec4 x, vec4 y);
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);
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);
188 vec2 min(vec2 x, float y);
189 vec3 min(vec3 x, float y);
190 vec4 min(vec4 x, float y);
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);
197 ivec2 min(ivec2 x, int y);
198 ivec3 min(ivec3 x, int y);
199 ivec4 min(ivec4 x, int y);
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);
206 uvec2 min(uvec2 x, uint y);
207 uvec3 min(uvec3 x, uint y);
208 uvec4 min(uvec4 x, uint y);
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);
215 vec2 max(vec2 x, float y);
216 vec3 max(vec3 x, float y);
217 vec4 max(vec4 x, float y);
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);
224 ivec2 max(ivec2 x, int y);
225 ivec3 max(ivec3 x, int y);
226 ivec4 max(ivec4 x, int y);
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);
233 uvec2 max(uvec2 x, uint y);
234 uvec3 max(uvec3 x, uint y);
235 uvec4 max(uvec4 x, uint y);
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);
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);
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);
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);
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);
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);
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);
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);
273 float mix(float x, float y, bool a);
274 vec2 mix(vec2 x, vec2 y, bvec2 a);
275 vec3 mix(vec3 x, vec3 y, bvec3 a);
276 vec4 mix(vec4 x, vec4 y, bvec4 a);
278 float step(float edge, float x);
279 vec2 step(vec2 edge, vec2 x);
280 vec3 step(vec3 edge, vec3 x);
281 vec4 step(vec4 edge, vec4 x);
283 vec2 step(float edge, vec2 x);
284 vec3 step(float edge, vec3 x);
285 vec4 step(float edge, vec4 x);
287 float smoothstep(float edge0, float edge1, float x);
288 vec2 smoothstep(vec2 edge0, vec2 edge1, vec2 x);
289 vec3 smoothstep(vec3 edge0, vec3 edge1, vec3 x);
290 vec4 smoothstep(vec4 edge0, vec4 edge1, vec4 x);
292 vec2 smoothstep(float edge0, float edge1, vec2 x);
293 vec3 smoothstep(float edge0, float edge1, vec3 x);
294 vec4 smoothstep(float edge0, float edge1, vec4 x);
306 int floatBitsToInt(float value);
307 ivec2 floatBitsToInt(vec2 value);
308 ivec3 floatBitsToInt(vec3 value);
309 ivec4 floatBitsToInt(vec4 value);
311 uint floatBitsToUint(float value);
312 uvec2 floatBitsToUint(vec2 value);
313 uvec3 floatBitsToUint(vec3 value);
314 uvec4 floatBitsToUint(vec4 value);
316 float intBitsToFloat(int value);
317 vec2 intBitsToFloat(ivec2 value);
318 vec3 intBitsToFloat(ivec3 value);
319 vec4 intBitsToFloat(ivec4 value);
321 float uintBitsToFloat(uint value);
322 vec2 uintBitsToFloat(uvec2 value);
323 vec3 uintBitsToFloat(uvec3 value);
324 vec4 uintBitsToFloat(uvec4 value);
327 * 8.4 - Floating-Point Pack and Unpack Functions
328 * FIXME: implement these
330 // uint packSnorm2x16(vec2 v);
331 // vec2 unpackSnorm2x16(uint p);
332 // uint packUnorm2x16(vec2 v);
333 // vec2 unpackUnorm2x16(uint p);
334 // uint packHalf2x16(vec2 v);
335 // vec2 unpackHalf2x16(uint p);
338 * 8.5 - Geometric Functions
340 float length(float x);
341 float length(vec2 x);
342 float length(vec3 x);
343 float length(vec4 x);
345 float distance(float p0, float p1);
346 float distance(vec2 p0, vec2 p1);
347 float distance(vec3 p0, vec3 p1);
348 float distance(vec4 p0, vec4 p1);
350 float dot(float x, float y);
351 float dot(vec2 x, vec2 y);
352 float dot(vec3 x, vec3 y);
353 float dot(vec4 x, vec4 y);
355 vec3 cross(vec3 x, vec3 y);
357 float normalize(float x);
358 vec2 normalize(vec2 x);
359 vec3 normalize(vec3 x);
360 vec4 normalize(vec4 x);
362 float faceforward(float N, float I, float Nref);
363 vec2 faceforward(vec2 N, vec2 I, vec2 Nref);
364 vec3 faceforward(vec3 N, vec3 I, vec3 Nref);
365 vec4 faceforward(vec4 N, vec4 I, vec4 Nref);
367 float reflect(float I, float N);
368 vec2 reflect(vec2 I, vec2 N);
369 vec3 reflect(vec3 I, vec3 N);
370 vec4 reflect(vec4 I, vec4 N);
372 float refract(float I, float N, float eta);
373 vec2 refract(vec2 I, vec2 N, float eta);
374 vec3 refract(vec3 I, vec3 N, float eta);
375 vec4 refract(vec4 I, vec4 N, float eta);
378 * 8.6 - Matrix Functions
380 mat2 matrixCompMult(mat2 x, mat2 y);
381 mat3 matrixCompMult(mat3 x, mat3 y);
382 mat4 matrixCompMult(mat4 x, mat4 y);
383 mat2x3 matrixCompMult(mat2x3 x, mat2x3 y);
384 mat2x4 matrixCompMult(mat2x4 x, mat2x4 y);
385 mat3x2 matrixCompMult(mat3x2 x, mat3x2 y);
386 mat3x4 matrixCompMult(mat3x4 x, mat3x4 y);
387 mat4x2 matrixCompMult(mat4x2 x, mat4x2 y);
388 mat4x3 matrixCompMult(mat4x3 x, mat4x3 y);
390 mat2 outerProduct(vec2 c, vec2 r);
391 mat3 outerProduct(vec3 c, vec3 r);
392 mat4 outerProduct(vec4 c, vec4 r);
394 mat2x3 outerProduct(vec3 c, vec2 r);
395 mat3x2 outerProduct(vec2 c, vec3 r);
397 mat2x4 outerProduct(vec4 c, vec2 r);
398 mat4x2 outerProduct(vec2 c, vec4 r);
400 mat3x4 outerProduct(vec4 c, vec3 r);
401 mat4x3 outerProduct(vec3 c, vec4 r);
403 mat2 transpose(mat2 m);
404 mat3 transpose(mat3 m);
405 mat4 transpose(mat4 m);
407 mat2x3 transpose(mat3x2 m);
408 mat3x2 transpose(mat2x3 m);
410 mat2x4 transpose(mat4x2 m);
411 mat4x2 transpose(mat2x4 m);
413 mat3x4 transpose(mat4x3 m);
414 mat4x3 transpose(mat3x4 m);
416 float determinant(mat2 m);
417 float determinant(mat3 m);
418 float determinant(mat4 m);
420 mat2 inverse(mat2 m);
421 mat3 inverse(mat3 m);
422 mat4 inverse(mat4 m);
425 * 8.7 - Vector Relational Functions
427 bvec2 lessThan( vec2 x, vec2 y);
428 bvec3 lessThan( vec3 x, vec3 y);
429 bvec4 lessThan( vec4 x, vec4 y);
430 bvec2 lessThan(ivec2 x, ivec2 y);
431 bvec3 lessThan(ivec3 x, ivec3 y);
432 bvec4 lessThan(ivec4 x, ivec4 y);
433 bvec2 lessThan(uvec2 x, uvec2 y);
434 bvec3 lessThan(uvec3 x, uvec3 y);
435 bvec4 lessThan(uvec4 x, uvec4 y);
437 bvec2 lessThanEqual( vec2 x, vec2 y);
438 bvec3 lessThanEqual( vec3 x, vec3 y);
439 bvec4 lessThanEqual( vec4 x, vec4 y);
440 bvec2 lessThanEqual(ivec2 x, ivec2 y);
441 bvec3 lessThanEqual(ivec3 x, ivec3 y);
442 bvec4 lessThanEqual(ivec4 x, ivec4 y);
443 bvec2 lessThanEqual(uvec2 x, uvec2 y);
444 bvec3 lessThanEqual(uvec3 x, uvec3 y);
445 bvec4 lessThanEqual(uvec4 x, uvec4 y);
447 bvec2 greaterThan( vec2 x, vec2 y);
448 bvec3 greaterThan( vec3 x, vec3 y);
449 bvec4 greaterThan( vec4 x, vec4 y);
450 bvec2 greaterThan(ivec2 x, ivec2 y);
451 bvec3 greaterThan(ivec3 x, ivec3 y);
452 bvec4 greaterThan(ivec4 x, ivec4 y);
453 bvec2 greaterThan(uvec2 x, uvec2 y);
454 bvec3 greaterThan(uvec3 x, uvec3 y);
455 bvec4 greaterThan(uvec4 x, uvec4 y);
457 bvec2 greaterThanEqual( vec2 x, vec2 y);
458 bvec3 greaterThanEqual( vec3 x, vec3 y);
459 bvec4 greaterThanEqual( vec4 x, vec4 y);
460 bvec2 greaterThanEqual(ivec2 x, ivec2 y);
461 bvec3 greaterThanEqual(ivec3 x, ivec3 y);
462 bvec4 greaterThanEqual(ivec4 x, ivec4 y);
463 bvec2 greaterThanEqual(uvec2 x, uvec2 y);
464 bvec3 greaterThanEqual(uvec3 x, uvec3 y);
465 bvec4 greaterThanEqual(uvec4 x, uvec4 y);
467 bvec2 equal( vec2 x, vec2 y);
468 bvec3 equal( vec3 x, vec3 y);
469 bvec4 equal( vec4 x, vec4 y);
470 bvec2 equal(ivec2 x, ivec2 y);
471 bvec3 equal(ivec3 x, ivec3 y);
472 bvec4 equal(ivec4 x, ivec4 y);
473 bvec2 equal(uvec2 x, uvec2 y);
474 bvec3 equal(uvec3 x, uvec3 y);
475 bvec4 equal(uvec4 x, uvec4 y);
476 bvec2 equal(bvec2 x, bvec2 y);
477 bvec3 equal(bvec3 x, bvec3 y);
478 bvec4 equal(bvec4 x, bvec4 y);
480 bvec2 notEqual( vec2 x, vec2 y);
481 bvec3 notEqual( vec3 x, vec3 y);
482 bvec4 notEqual( vec4 x, vec4 y);
483 bvec2 notEqual(ivec2 x, ivec2 y);
484 bvec3 notEqual(ivec3 x, ivec3 y);
485 bvec4 notEqual(ivec4 x, ivec4 y);
486 bvec2 notEqual(uvec2 x, uvec2 y);
487 bvec3 notEqual(uvec3 x, uvec3 y);
488 bvec4 notEqual(uvec4 x, uvec4 y);
489 bvec2 notEqual(bvec2 x, bvec2 y);
490 bvec3 notEqual(bvec3 x, bvec3 y);
491 bvec4 notEqual(bvec4 x, bvec4 y);
506 * 8.8 - Texture Lookup Functions
510 ivec2 textureSize( sampler2D sampler, int lod);
511 ivec2 textureSize(isampler2D sampler, int lod);
512 ivec2 textureSize(usampler2D sampler, int lod);
514 ivec3 textureSize( sampler3D sampler, int lod);
515 ivec3 textureSize(isampler3D sampler, int lod);
516 ivec3 textureSize(usampler3D sampler, int lod);
518 ivec2 textureSize( samplerCube sampler, int lod);
519 ivec2 textureSize(isamplerCube sampler, int lod);
520 ivec2 textureSize(usamplerCube sampler, int lod);
522 ivec2 textureSize(sampler2DShadow sampler, int lod);
523 ivec2 textureSize(samplerCubeShadow sampler, int lod);
525 ivec3 textureSize( sampler2DArray sampler, int lod);
526 ivec3 textureSize(isampler2DArray sampler, int lod);
527 ivec3 textureSize(usampler2DArray sampler, int lod);
529 ivec3 textureSize(sampler2DArrayShadow sampler, int lod);
531 /* texture - no bias */
532 vec4 texture( sampler2D sampler, vec2 P);
533 ivec4 texture(isampler2D sampler, vec2 P);
534 uvec4 texture(usampler2D sampler, vec2 P);
536 vec4 texture( sampler3D sampler, vec3 P);
537 ivec4 texture(isampler3D sampler, vec3 P);
538 uvec4 texture(usampler3D sampler, vec3 P);
540 vec4 texture( samplerCube sampler, vec3 P);
541 ivec4 texture(isamplerCube sampler, vec3 P);
542 uvec4 texture(usamplerCube sampler, vec3 P);
544 float texture(sampler2DShadow sampler, vec3 P);
545 float texture(samplerCubeShadow sampler, vec4 P);
547 vec4 texture( sampler2DArray sampler, vec3 P);
548 ivec4 texture(isampler2DArray sampler, vec3 P);
549 uvec4 texture(usampler2DArray sampler, vec3 P);
551 float texture(sampler2DArrayShadow sampler, vec4 P);
553 /* textureProj - no bias */
554 vec4 textureProj( sampler2D sampler, vec3 P);
555 ivec4 textureProj(isampler2D sampler, vec3 P);
556 uvec4 textureProj(usampler2D sampler, vec3 P);
557 vec4 textureProj( sampler2D sampler, vec4 P);
558 ivec4 textureProj(isampler2D sampler, vec4 P);
559 uvec4 textureProj(usampler2D sampler, vec4 P);
561 vec4 textureProj( sampler3D sampler, vec4 P);
562 ivec4 textureProj(isampler3D sampler, vec4 P);
563 uvec4 textureProj(usampler3D sampler, vec4 P);
565 float textureProj(sampler2DShadow sampler, vec4 P);
568 vec4 textureLod( sampler2D sampler, vec2 P, float lod);
569 ivec4 textureLod(isampler2D sampler, vec2 P, float lod);
570 uvec4 textureLod(usampler2D sampler, vec2 P, float lod);
572 vec4 textureLod( sampler3D sampler, vec3 P, float lod);
573 ivec4 textureLod(isampler3D sampler, vec3 P, float lod);
574 uvec4 textureLod(usampler3D sampler, vec3 P, float lod);
576 vec4 textureLod( samplerCube sampler, vec3 P, float lod);
577 ivec4 textureLod(isamplerCube sampler, vec3 P, float lod);
578 uvec4 textureLod(usamplerCube sampler, vec3 P, float lod);
580 float textureLod(sampler2DShadow sampler, vec3 P, float lod);
582 vec4 textureLod( sampler2DArray sampler, vec3 P, float lod);
583 ivec4 textureLod(isampler2DArray sampler, vec3 P, float lod);
584 uvec4 textureLod(usampler2DArray sampler, vec3 P, float lod);
586 /* textureOffset - no bias */
587 vec4 textureOffset( sampler2D sampler, vec2 P, ivec2 offset);
588 ivec4 textureOffset(isampler2D sampler, vec2 P, ivec2 offset);
589 uvec4 textureOffset(usampler2D sampler, vec2 P, ivec2 offset);
591 vec4 textureOffset( sampler3D sampler, vec3 P, ivec3 offset);
592 ivec4 textureOffset(isampler3D sampler, vec3 P, ivec3 offset);
593 uvec4 textureOffset(usampler3D sampler, vec3 P, ivec3 offset);
595 float textureOffset(sampler2DShadow sampler, vec3 P, ivec2 offset);
597 vec4 textureOffset( sampler2DArray sampler, vec3 P, ivec2 offset);
598 ivec4 textureOffset(isampler2DArray sampler, vec3 P, ivec2 offset);
599 uvec4 textureOffset(usampler2DArray sampler, vec3 P, ivec2 offset);
602 vec4 texelFetch( sampler2D sampler, ivec2 P, int lod);
603 ivec4 texelFetch(isampler2D sampler, ivec2 P, int lod);
604 uvec4 texelFetch(usampler2D sampler, ivec2 P, int lod);
606 vec4 texelFetch( sampler3D sampler, ivec3 P, int lod);
607 ivec4 texelFetch(isampler3D sampler, ivec3 P, int lod);
608 uvec4 texelFetch(usampler3D sampler, ivec3 P, int lod);
610 vec4 texelFetch( sampler2DArray sampler, ivec3 P, int lod);
611 ivec4 texelFetch(isampler2DArray sampler, ivec3 P, int lod);
612 uvec4 texelFetch(usampler2DArray sampler, ivec3 P, int lod);
614 /* texelFetchOffset */
615 vec4 texelFetchOffset( sampler2D sampler, ivec2 P, int lod, ivec2 offset);
616 ivec4 texelFetchOffset(isampler2D sampler, ivec2 P, int lod, ivec2 offset);
617 uvec4 texelFetchOffset(usampler2D sampler, ivec2 P, int lod, ivec2 offset);
619 vec4 texelFetchOffset( sampler3D sampler, ivec3 P, int lod, ivec3 offset);
620 ivec4 texelFetchOffset(isampler3D sampler, ivec3 P, int lod, ivec3 offset);
621 uvec4 texelFetchOffset(usampler3D sampler, ivec3 P, int lod, ivec3 offset);
623 vec4 texelFetchOffset( sampler2DArray sampler, ivec3 P, int lod, ivec2 offset);
624 ivec4 texelFetchOffset(isampler2DArray sampler, ivec3 P, int lod, ivec2 offset);
625 uvec4 texelFetchOffset(usampler2DArray sampler, ivec3 P, int lod, ivec2 offset);
627 /* textureProjOffset - no bias */
628 vec4 textureProjOffset( sampler2D sampler, vec3 P, ivec2 offset);
629 ivec4 textureProjOffset(isampler2D sampler, vec3 P, ivec2 offset);
630 uvec4 textureProjOffset(usampler2D sampler, vec3 P, ivec2 offset);
631 vec4 textureProjOffset( sampler2D sampler, vec4 P, ivec2 offset);
632 ivec4 textureProjOffset(isampler2D sampler, vec4 P, ivec2 offset);
633 uvec4 textureProjOffset(usampler2D sampler, vec4 P, ivec2 offset);
635 vec4 textureProjOffset( sampler3D sampler, vec4 P, ivec3 offset);
636 ivec4 textureProjOffset(isampler3D sampler, vec4 P, ivec3 offset);
637 uvec4 textureProjOffset(usampler3D sampler, vec4 P, ivec3 offset);
639 float textureProjOffset(sampler2DShadow sampler, vec4 P, ivec2 offset);
641 /* textureLodOffset */
642 vec4 textureLodOffset( sampler2D sampler, vec2 P, float lod, ivec2 offset);
643 ivec4 textureLodOffset(isampler2D sampler, vec2 P, float lod, ivec2 offset);
644 uvec4 textureLodOffset(usampler2D sampler, vec2 P, float lod, ivec2 offset);
646 vec4 textureLodOffset( sampler3D sampler, vec3 P, float lod, ivec3 offset);
647 ivec4 textureLodOffset(isampler3D sampler, vec3 P, float lod, ivec3 offset);
648 uvec4 textureLodOffset(usampler3D sampler, vec3 P, float lod, ivec3 offset);
650 float textureLodOffset(sampler2DShadow samp, vec3 P, float lod, ivec2 offset);
652 vec4 textureLodOffset( sampler2DArray samp, vec3 P, float lod, ivec2 offset);
653 ivec4 textureLodOffset(isampler2DArray samp, vec3 P, float lod, ivec2 offset);
654 uvec4 textureLodOffset(usampler2DArray samp, vec3 P, float lod, ivec2 offset);
657 vec4 textureProjLod( sampler2D sampler, vec3 P, float lod);
658 ivec4 textureProjLod(isampler2D sampler, vec3 P, float lod);
659 uvec4 textureProjLod(usampler2D sampler, vec3 P, float lod);
660 vec4 textureProjLod( sampler2D sampler, vec4 P, float lod);
661 ivec4 textureProjLod(isampler2D sampler, vec4 P, float lod);
662 uvec4 textureProjLod(usampler2D sampler, vec4 P, float lod);
664 vec4 textureProjLod( sampler3D sampler, vec4 P, float lod);
665 ivec4 textureProjLod(isampler3D sampler, vec4 P, float lod);
666 uvec4 textureProjLod(usampler3D sampler, vec4 P, float lod);
668 float textureProjLod(sampler2DShadow sampler, vec4 P, float lod);
670 /* textureProjLodOffset */
671 vec4 textureProjLodOffset( sampler2D sampler, vec3 P, float lod, ivec2 offset);
672 ivec4 textureProjLodOffset(isampler2D sampler, vec3 P, float lod, ivec2 offset);
673 uvec4 textureProjLodOffset(usampler2D sampler, vec3 P, float lod, ivec2 offset);
674 vec4 textureProjLodOffset( sampler2D sampler, vec4 P, float lod, ivec2 offset);
675 ivec4 textureProjLodOffset(isampler2D sampler, vec4 P, float lod, ivec2 offset);
676 uvec4 textureProjLodOffset(usampler2D sampler, vec4 P, float lod, ivec2 offset);
678 vec4 textureProjLodOffset( sampler3D sampler, vec4 P, float lod, ivec3 offset);
679 ivec4 textureProjLodOffset(isampler3D sampler, vec4 P, float lod, ivec3 offset);
680 uvec4 textureProjLodOffset(usampler3D sampler, vec4 P, float lod, ivec3 offset);
682 float textureProjLodOffset(sampler2DShadow s, vec4 P, float lod, ivec2 offset);
685 vec4 textureGrad( sampler2D sampler, vec2 P, vec2 dPdx, vec2 dPdy);
686 ivec4 textureGrad(isampler2D sampler, vec2 P, vec2 dPdx, vec2 dPdy);
687 uvec4 textureGrad(usampler2D sampler, vec2 P, vec2 dPdx, vec2 dPdy);
689 vec4 textureGrad( sampler3D sampler, vec3 P, vec3 dPdx, vec3 dPdy);
690 ivec4 textureGrad(isampler3D sampler, vec3 P, vec3 dPdx, vec3 dPdy);
691 uvec4 textureGrad(usampler3D sampler, vec3 P, vec3 dPdx, vec3 dPdy);
693 vec4 textureGrad( samplerCube sampler, vec3 P, vec3 dPdx, vec3 dPdy);
694 ivec4 textureGrad(isamplerCube sampler, vec3 P, vec3 dPdx, vec3 dPdy);
695 uvec4 textureGrad(usamplerCube sampler, vec3 P, vec3 dPdx, vec3 dPdy);
697 float textureGrad(sampler2DShadow sampler, vec3 P, vec2 dPdx, vec2 dPdy);
698 float textureGrad(samplerCubeShadow sampler, vec4 P, vec3 dPdx, vec3 dPdy);
700 vec4 textureGrad( sampler2DArray sampler, vec3 P, vec2 dPdx, vec2 dPdy);
701 ivec4 textureGrad(isampler2DArray sampler, vec3 P, vec2 dPdx, vec2 dPdy);
702 uvec4 textureGrad(usampler2DArray sampler, vec3 P, vec2 dPdx, vec2 dPdy);
704 float textureGrad(sampler2DArrayShadow sampler, vec4 P, vec2 dPdx, vec2 dPdy);
706 /* textureGradOffset */
707 vec4 textureGradOffset( sampler2D s, vec2 P, vec2 dx, vec2 dy, ivec2 offset);
708 ivec4 textureGradOffset(isampler2D s, vec2 P, vec2 dx, vec2 dy, ivec2 offset);
709 uvec4 textureGradOffset(usampler2D s, vec2 P, vec2 dx, vec2 dy, ivec2 offset);
711 vec4 textureGradOffset( sampler3D s, vec3 P, vec3 dx, vec3 dy, ivec3 offset);
712 ivec4 textureGradOffset(isampler3D s, vec3 P, vec3 dx, vec3 dy, ivec3 offset);
713 uvec4 textureGradOffset(usampler3D s, vec3 P, vec3 dx, vec3 dy, ivec3 offset);
715 float textureGradOffset(sampler2DShadow s, vec3 P, vec2 dx, vec2 dy, ivec2 off);
717 vec4 textureGradOffset( sampler2DArray s, vec3 P, vec2 dx, vec2 dy, ivec2 off);
718 ivec4 textureGradOffset(isampler2DArray s, vec3 P, vec2 dx, vec2 dy, ivec2 off);
719 uvec4 textureGradOffset(usampler2DArray s, vec3 P, vec2 dx, vec2 dy, ivec2 off);
721 float textureGradOffset(sampler2DArrayShadow s, vec4 P, vec2 dx, vec2 dy, ivec2 o);
723 /* textureProjGrad */
724 vec4 textureProjGrad( sampler2D sampler, vec3 P, vec2 dPdx, vec2 dPdy);
725 ivec4 textureProjGrad(isampler2D sampler, vec3 P, vec2 dPdx, vec2 dPdy);
726 uvec4 textureProjGrad(usampler2D sampler, vec3 P, vec2 dPdx, vec2 dPdy);
727 vec4 textureProjGrad( sampler2D sampler, vec4 P, vec2 dPdx, vec2 dPdy);
728 ivec4 textureProjGrad(isampler2D sampler, vec4 P, vec2 dPdx, vec2 dPdy);
729 uvec4 textureProjGrad(usampler2D sampler, vec4 P, vec2 dPdx, vec2 dPdy);
731 vec4 textureProjGrad( sampler3D sampler, vec4 P, vec3 dPdx, vec3 dPdy);
732 ivec4 textureProjGrad(isampler3D sampler, vec4 P, vec3 dPdx, vec3 dPdy);
733 uvec4 textureProjGrad(usampler3D sampler, vec4 P, vec3 dPdx, vec3 dPdy);
735 float textureProjGrad(sampler2DShadow sampler, vec4 P, vec2 dPdx, vec2 dPdy);
737 /* textureProjGradOffset */
738 vec4 textureProjGradOffset( sampler2D s, vec3 P, vec2 dx, vec2 dy, ivec2 off);
739 ivec4 textureProjGradOffset(isampler2D s, vec3 P, vec2 dx, vec2 dy, ivec2 off);
740 uvec4 textureProjGradOffset(usampler2D s, vec3 P, vec2 dx, vec2 dy, ivec2 off);
741 vec4 textureProjGradOffset( sampler2D s, vec4 P, vec2 dx, vec2 dy, ivec2 off);
742 ivec4 textureProjGradOffset(isampler2D s, vec4 P, vec2 dx, vec2 dy, ivec2 off);
743 uvec4 textureProjGradOffset(usampler2D s, vec4 P, vec2 dx, vec2 dy, ivec2 off);
745 vec4 textureProjGradOffset( sampler3D s, vec4 P, vec3 dx, vec3 dy, ivec3 off);
746 ivec4 textureProjGradOffset(isampler3D s, vec4 P, vec3 dx, vec3 dy, ivec3 off);
747 uvec4 textureProjGradOffset(usampler3D s, vec4 P, vec3 dx, vec3 dy, ivec3 off);
749 float textureProjGradOffset(sampler2DShadow s, vec4 P, vec2 dx, vec2 dy, ivec2 o);