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);
307 * 8.4 - Geometric Functions
309 float length(float x);
310 float length(vec2 x);
311 float length(vec3 x);
312 float length(vec4 x);
314 float distance(float p0, float p1);
315 float distance(vec2 p0, vec2 p1);
316 float distance(vec3 p0, vec3 p1);
317 float distance(vec4 p0, vec4 p1);
319 float dot(float x, float y);
320 float dot(vec2 x, vec2 y);
321 float dot(vec3 x, vec3 y);
322 float dot(vec4 x, vec4 y);
324 vec3 cross(vec3 x, vec3 y);
326 float normalize(float x);
327 vec2 normalize(vec2 x);
328 vec3 normalize(vec3 x);
329 vec4 normalize(vec4 x);
331 float faceforward(float N, float I, float Nref);
332 vec2 faceforward(vec2 N, vec2 I, vec2 Nref);
333 vec3 faceforward(vec3 N, vec3 I, vec3 Nref);
334 vec4 faceforward(vec4 N, vec4 I, vec4 Nref);
336 float reflect(float I, float N);
337 vec2 reflect(vec2 I, vec2 N);
338 vec3 reflect(vec3 I, vec3 N);
339 vec4 reflect(vec4 I, vec4 N);
341 float refract(float I, float N, float eta);
342 vec2 refract(vec2 I, vec2 N, float eta);
343 vec3 refract(vec3 I, vec3 N, float eta);
344 vec4 refract(vec4 I, vec4 N, float eta);
348 * 8.5 - Matrix Functions
350 mat2 matrixCompMult(mat2 x, mat2 y);
351 mat3 matrixCompMult(mat3 x, mat3 y);
352 mat4 matrixCompMult(mat4 x, mat4 y);
353 mat2x3 matrixCompMult(mat2x3 x, mat2x3 y);
354 mat2x4 matrixCompMult(mat2x4 x, mat2x4 y);
355 mat3x2 matrixCompMult(mat3x2 x, mat3x2 y);
356 mat3x4 matrixCompMult(mat3x4 x, mat3x4 y);
357 mat4x2 matrixCompMult(mat4x2 x, mat4x2 y);
358 mat4x3 matrixCompMult(mat4x3 x, mat4x3 y);
360 mat2 outerProduct(vec2 c, vec2 r);
361 mat3 outerProduct(vec3 c, vec3 r);
362 mat4 outerProduct(vec4 c, vec4 r);
364 mat2x3 outerProduct(vec3 c, vec2 r);
365 mat3x2 outerProduct(vec2 c, vec3 r);
367 mat2x4 outerProduct(vec4 c, vec2 r);
368 mat4x2 outerProduct(vec2 c, vec4 r);
370 mat3x4 outerProduct(vec4 c, vec3 r);
371 mat4x3 outerProduct(vec3 c, vec4 r);
373 mat2 transpose(mat2 m);
374 mat3 transpose(mat3 m);
375 mat4 transpose(mat4 m);
377 mat2x3 transpose(mat3x2 m);
378 mat3x2 transpose(mat2x3 m);
380 mat2x4 transpose(mat4x2 m);
381 mat4x2 transpose(mat2x4 m);
383 mat3x4 transpose(mat4x3 m);
384 mat4x3 transpose(mat3x4 m);
387 * 8.6 - Vector Relational Functions
389 bvec2 lessThan( vec2 x, vec2 y);
390 bvec3 lessThan( vec3 x, vec3 y);
391 bvec4 lessThan( vec4 x, vec4 y);
392 bvec2 lessThan(ivec2 x, ivec2 y);
393 bvec3 lessThan(ivec3 x, ivec3 y);
394 bvec4 lessThan(ivec4 x, ivec4 y);
395 bvec2 lessThan(uvec2 x, uvec2 y);
396 bvec3 lessThan(uvec3 x, uvec3 y);
397 bvec4 lessThan(uvec4 x, uvec4 y);
399 bvec2 lessThanEqual( vec2 x, vec2 y);
400 bvec3 lessThanEqual( vec3 x, vec3 y);
401 bvec4 lessThanEqual( vec4 x, vec4 y);
402 bvec2 lessThanEqual(ivec2 x, ivec2 y);
403 bvec3 lessThanEqual(ivec3 x, ivec3 y);
404 bvec4 lessThanEqual(ivec4 x, ivec4 y);
405 bvec2 lessThanEqual(uvec2 x, uvec2 y);
406 bvec3 lessThanEqual(uvec3 x, uvec3 y);
407 bvec4 lessThanEqual(uvec4 x, uvec4 y);
409 bvec2 greaterThan( vec2 x, vec2 y);
410 bvec3 greaterThan( vec3 x, vec3 y);
411 bvec4 greaterThan( vec4 x, vec4 y);
412 bvec2 greaterThan(ivec2 x, ivec2 y);
413 bvec3 greaterThan(ivec3 x, ivec3 y);
414 bvec4 greaterThan(ivec4 x, ivec4 y);
415 bvec2 greaterThan(uvec2 x, uvec2 y);
416 bvec3 greaterThan(uvec3 x, uvec3 y);
417 bvec4 greaterThan(uvec4 x, uvec4 y);
419 bvec2 greaterThanEqual( vec2 x, vec2 y);
420 bvec3 greaterThanEqual( vec3 x, vec3 y);
421 bvec4 greaterThanEqual( vec4 x, vec4 y);
422 bvec2 greaterThanEqual(ivec2 x, ivec2 y);
423 bvec3 greaterThanEqual(ivec3 x, ivec3 y);
424 bvec4 greaterThanEqual(ivec4 x, ivec4 y);
425 bvec2 greaterThanEqual(uvec2 x, uvec2 y);
426 bvec3 greaterThanEqual(uvec3 x, uvec3 y);
427 bvec4 greaterThanEqual(uvec4 x, uvec4 y);
429 bvec2 equal( vec2 x, vec2 y);
430 bvec3 equal( vec3 x, vec3 y);
431 bvec4 equal( vec4 x, vec4 y);
432 bvec2 equal(ivec2 x, ivec2 y);
433 bvec3 equal(ivec3 x, ivec3 y);
434 bvec4 equal(ivec4 x, ivec4 y);
435 bvec2 equal(uvec2 x, uvec2 y);
436 bvec3 equal(uvec3 x, uvec3 y);
437 bvec4 equal(uvec4 x, uvec4 y);
438 bvec2 equal(bvec2 x, bvec2 y);
439 bvec3 equal(bvec3 x, bvec3 y);
440 bvec4 equal(bvec4 x, bvec4 y);
442 bvec2 notEqual( vec2 x, vec2 y);
443 bvec3 notEqual( vec3 x, vec3 y);
444 bvec4 notEqual( vec4 x, vec4 y);
445 bvec2 notEqual(ivec2 x, ivec2 y);
446 bvec3 notEqual(ivec3 x, ivec3 y);
447 bvec4 notEqual(ivec4 x, ivec4 y);
448 bvec2 notEqual(uvec2 x, uvec2 y);
449 bvec3 notEqual(uvec3 x, uvec3 y);
450 bvec4 notEqual(uvec4 x, uvec4 y);
451 bvec2 notEqual(bvec2 x, bvec2 y);
452 bvec3 notEqual(bvec3 x, bvec3 y);
453 bvec4 notEqual(bvec4 x, bvec4 y);
468 * 8.7 - Texture Lookup Functions
472 int textureSize( sampler1D sampler, int lod);
473 int textureSize(isampler1D sampler, int lod);
474 int textureSize(usampler1D sampler, int lod);
476 ivec2 textureSize( sampler2D sampler, int lod);
477 ivec2 textureSize(isampler2D sampler, int lod);
478 ivec2 textureSize(usampler2D sampler, int lod);
480 ivec3 textureSize( sampler3D sampler, int lod);
481 ivec3 textureSize(isampler3D sampler, int lod);
482 ivec3 textureSize(usampler3D sampler, int lod);
484 ivec2 textureSize( samplerCube sampler, int lod);
485 ivec2 textureSize(isamplerCube sampler, int lod);
486 ivec2 textureSize(usamplerCube sampler, int lod);
488 int textureSize(sampler1DShadow sampler, int lod);
489 ivec2 textureSize(sampler2DShadow sampler, int lod);
490 ivec2 textureSize(samplerCubeShadow sampler, int lod);
492 ivec2 textureSize( sampler1DArray sampler, int lod);
493 ivec2 textureSize(isampler1DArray sampler, int lod);
494 ivec2 textureSize(usampler1DArray sampler, int lod);
495 ivec3 textureSize( sampler2DArray sampler, int lod);
496 ivec3 textureSize(isampler2DArray sampler, int lod);
497 ivec3 textureSize(usampler2DArray sampler, int lod);
499 ivec2 textureSize(sampler1DArrayShadow sampler, int lod);
500 ivec3 textureSize(sampler2DArrayShadow sampler, int lod);
502 /* texture - no bias */
503 vec4 texture( sampler1D sampler, float P);
504 ivec4 texture(isampler1D sampler, float P);
505 uvec4 texture(usampler1D sampler, float P);
507 vec4 texture( sampler2D sampler, vec2 P);
508 ivec4 texture(isampler2D sampler, vec2 P);
509 uvec4 texture(usampler2D sampler, vec2 P);
511 vec4 texture( sampler3D sampler, vec3 P);
512 ivec4 texture(isampler3D sampler, vec3 P);
513 uvec4 texture(usampler3D sampler, vec3 P);
515 vec4 texture( samplerCube sampler, vec3 P);
516 ivec4 texture(isamplerCube sampler, vec3 P);
517 uvec4 texture(usamplerCube sampler, vec3 P);
519 float texture(sampler1DShadow sampler, vec3 P);
520 float texture(sampler2DShadow sampler, vec3 P);
521 float texture(samplerCubeShadow sampler, vec4 P);
523 vec4 texture( sampler1DArray sampler, vec2 P);
524 ivec4 texture(isampler1DArray sampler, vec2 P);
525 uvec4 texture(usampler1DArray sampler, vec2 P);
527 vec4 texture( sampler2DArray sampler, vec3 P);
528 ivec4 texture(isampler2DArray sampler, vec3 P);
529 uvec4 texture(usampler2DArray sampler, vec3 P);
531 float texture(sampler1DArrayShadow sampler, vec3 P);
532 float texture(sampler2DArrayShadow sampler, vec4 P);
534 /* texture - bias variants */
535 vec4 texture( sampler1D sampler, float P, float bias);
536 ivec4 texture(isampler1D sampler, float P, float bias);
537 uvec4 texture(usampler1D sampler, float P, float bias);
539 vec4 texture( sampler2D sampler, vec2 P, float bias);
540 ivec4 texture(isampler2D sampler, vec2 P, float bias);
541 uvec4 texture(usampler2D sampler, vec2 P, float bias);
543 vec4 texture( sampler3D sampler, vec3 P, float bias);
544 ivec4 texture(isampler3D sampler, vec3 P, float bias);
545 uvec4 texture(usampler3D sampler, vec3 P, float bias);
547 vec4 texture( samplerCube sampler, vec3 P, float bias);
548 ivec4 texture(isamplerCube sampler, vec3 P, float bias);
549 uvec4 texture(usamplerCube sampler, vec3 P, float bias);
551 float texture(sampler1DShadow sampler, vec3 P, float bias);
552 float texture(sampler2DShadow sampler, vec3 P, float bias);
553 float texture(samplerCubeShadow sampler, vec4 P, float bias);
555 vec4 texture( sampler1DArray sampler, vec2 P, float bias);
556 ivec4 texture(isampler1DArray sampler, vec2 P, float bias);
557 uvec4 texture(usampler1DArray sampler, vec2 P, float bias);
559 vec4 texture( sampler2DArray sampler, vec3 P, float bias);
560 ivec4 texture(isampler2DArray sampler, vec3 P, float bias);
561 uvec4 texture(usampler2DArray sampler, vec3 P, float bias);
563 float texture(sampler1DArrayShadow sampler, vec3 P, float bias);
565 /* textureProj - no bias */
566 vec4 textureProj( sampler1D sampler, vec2 P);
567 ivec4 textureProj(isampler1D sampler, vec2 P);
568 uvec4 textureProj(usampler1D sampler, vec2 P);
569 vec4 textureProj( sampler1D sampler, vec4 P);
570 ivec4 textureProj(isampler1D sampler, vec4 P);
571 uvec4 textureProj(usampler1D sampler, vec4 P);
573 vec4 textureProj( sampler2D sampler, vec3 P);
574 ivec4 textureProj(isampler2D sampler, vec3 P);
575 uvec4 textureProj(usampler2D sampler, vec3 P);
576 vec4 textureProj( sampler2D sampler, vec4 P);
577 ivec4 textureProj(isampler2D sampler, vec4 P);
578 uvec4 textureProj(usampler2D sampler, vec4 P);
580 vec4 textureProj( sampler3D sampler, vec4 P);
581 ivec4 textureProj(isampler3D sampler, vec4 P);
582 uvec4 textureProj(usampler3D sampler, vec4 P);
584 float textureProj(sampler1DShadow sampler, vec4 P);
585 float textureProj(sampler2DShadow sampler, vec4 P);
587 /* textureProj - bias variants */
588 vec4 textureProj( sampler1D sampler, vec2 P, float bias);
589 ivec4 textureProj(isampler1D sampler, vec2 P, float bias);
590 uvec4 textureProj(usampler1D sampler, vec2 P, float bias);
591 vec4 textureProj( sampler1D sampler, vec4 P, float bias);
592 ivec4 textureProj(isampler1D sampler, vec4 P, float bias);
593 uvec4 textureProj(usampler1D sampler, vec4 P, float bias);
595 vec4 textureProj( sampler2D sampler, vec3 P, float bias);
596 ivec4 textureProj(isampler2D sampler, vec3 P, float bias);
597 uvec4 textureProj(usampler2D sampler, vec3 P, float bias);
598 vec4 textureProj( sampler2D sampler, vec4 P, float bias);
599 ivec4 textureProj(isampler2D sampler, vec4 P, float bias);
600 uvec4 textureProj(usampler2D sampler, vec4 P, float bias);
602 vec4 textureProj( sampler3D sampler, vec4 P, float bias);
603 ivec4 textureProj(isampler3D sampler, vec4 P, float bias);
604 uvec4 textureProj(usampler3D sampler, vec4 P, float bias);
606 float textureProj(sampler1DShadow sampler, vec4 P, float bias);
607 float textureProj(sampler2DShadow sampler, vec4 P, float bias);
610 vec4 textureLod( sampler1D sampler, float P, float lod);
611 ivec4 textureLod(isampler1D sampler, float P, float lod);
612 uvec4 textureLod(usampler1D sampler, float P, float lod);
614 vec4 textureLod( sampler2D sampler, vec2 P, float lod);
615 ivec4 textureLod(isampler2D sampler, vec2 P, float lod);
616 uvec4 textureLod(usampler2D sampler, vec2 P, float lod);
618 vec4 textureLod( sampler3D sampler, vec3 P, float lod);
619 ivec4 textureLod(isampler3D sampler, vec3 P, float lod);
620 uvec4 textureLod(usampler3D sampler, vec3 P, float lod);
622 vec4 textureLod( samplerCube sampler, vec3 P, float lod);
623 ivec4 textureLod(isamplerCube sampler, vec3 P, float lod);
624 uvec4 textureLod(usamplerCube sampler, vec3 P, float lod);
626 float textureLod(sampler1DShadow sampler, vec3 P, float lod);
627 float textureLod(sampler2DShadow sampler, vec3 P, float lod);
629 vec4 textureLod( sampler1DArray sampler, vec2 P, float lod);
630 ivec4 textureLod(isampler1DArray sampler, vec2 P, float lod);
631 uvec4 textureLod(usampler1DArray sampler, vec2 P, float lod);
633 vec4 textureLod( sampler2DArray sampler, vec3 P, float lod);
634 ivec4 textureLod(isampler2DArray sampler, vec3 P, float lod);
635 uvec4 textureLod(usampler2DArray sampler, vec3 P, float lod);
637 float textureLod(sampler1DArrayShadow sampler, vec3 P, float lod);
639 /* textureOffset - no bias */
640 vec4 textureOffset( sampler1D sampler, float P, int offset);
641 ivec4 textureOffset(isampler1D sampler, float P, int offset);
642 uvec4 textureOffset(usampler1D sampler, float P, int offset);
644 vec4 textureOffset( sampler2D sampler, vec2 P, ivec2 offset);
645 ivec4 textureOffset(isampler2D sampler, vec2 P, ivec2 offset);
646 uvec4 textureOffset(usampler2D sampler, vec2 P, ivec2 offset);
648 vec4 textureOffset( sampler3D sampler, vec3 P, ivec3 offset);
649 ivec4 textureOffset(isampler3D sampler, vec3 P, ivec3 offset);
650 uvec4 textureOffset(usampler3D sampler, vec3 P, ivec3 offset);
652 float textureOffset(sampler1DShadow sampler, vec3 P, int offset);
653 float textureOffset(sampler2DShadow sampler, vec3 P, ivec2 offset);
655 vec4 textureOffset( sampler1DArray sampler, vec2 P, int offset);
656 ivec4 textureOffset(isampler1DArray sampler, vec2 P, int offset);
657 uvec4 textureOffset(usampler1DArray sampler, vec2 P, int offset);
659 vec4 textureOffset( sampler2DArray sampler, vec3 P, ivec2 offset);
660 ivec4 textureOffset(isampler2DArray sampler, vec3 P, ivec2 offset);
661 uvec4 textureOffset(usampler2DArray sampler, vec3 P, ivec2 offset);
663 float textureOffset(sampler1DArrayShadow sampler, vec3 P, int offset);
665 /* textureOffset - bias variants */
666 vec4 textureOffset( sampler1D sampler, float P, int offset, float bias);
667 ivec4 textureOffset(isampler1D sampler, float P, int offset, float bias);
668 uvec4 textureOffset(usampler1D sampler, float P, int offset, float bias);
670 vec4 textureOffset( sampler2D sampler, vec2 P, ivec2 offset, float bias);
671 ivec4 textureOffset(isampler2D sampler, vec2 P, ivec2 offset, float bias);
672 uvec4 textureOffset(usampler2D sampler, vec2 P, ivec2 offset, float bias);
674 vec4 textureOffset( sampler3D sampler, vec3 P, ivec3 offset, float bias);
675 ivec4 textureOffset(isampler3D sampler, vec3 P, ivec3 offset, float bias);
676 uvec4 textureOffset(usampler3D sampler, vec3 P, ivec3 offset, float bias);
678 float textureOffset(sampler1DShadow sampler, vec3 P, int offset, float bias);
679 float textureOffset(sampler2DShadow sampler, vec3 P, ivec2 offset, float bias);
681 vec4 textureOffset( sampler1DArray sampler, vec2 P, int offset, float bias);
682 ivec4 textureOffset(isampler1DArray sampler, vec2 P, int offset, float bias);
683 uvec4 textureOffset(usampler1DArray sampler, vec2 P, int offset, float bias);
685 vec4 textureOffset( sampler2DArray sampler, vec3 P, ivec2 offset, float bias);
686 ivec4 textureOffset(isampler2DArray sampler, vec3 P, ivec2 offset, float bias);
687 uvec4 textureOffset(usampler2DArray sampler, vec3 P, ivec2 offset, float bias);
689 float textureOffset(sampler1DArrayShadow samp, vec3 P, int offset, float bias);
692 vec4 texelFetch( sampler1D sampler, int P, int lod);
693 ivec4 texelFetch(isampler1D sampler, int P, int lod);
694 uvec4 texelFetch(usampler1D sampler, int P, int lod);
696 vec4 texelFetch( sampler2D sampler, ivec2 P, int lod);
697 ivec4 texelFetch(isampler2D sampler, ivec2 P, int lod);
698 uvec4 texelFetch(usampler2D sampler, ivec2 P, int lod);
700 vec4 texelFetch( sampler3D sampler, ivec3 P, int lod);
701 ivec4 texelFetch(isampler3D sampler, ivec3 P, int lod);
702 uvec4 texelFetch(usampler3D sampler, ivec3 P, int lod);
704 vec4 texelFetch( sampler1DArray sampler, ivec2 P, int lod);
705 ivec4 texelFetch(isampler1DArray sampler, ivec2 P, int lod);
706 uvec4 texelFetch(usampler1DArray sampler, ivec2 P, int lod);
708 vec4 texelFetch( sampler2DArray sampler, ivec3 P, int lod);
709 ivec4 texelFetch(isampler2DArray sampler, ivec3 P, int lod);
710 uvec4 texelFetch(usampler2DArray sampler, ivec3 P, int lod);
712 /* texelFetchOffset */
713 vec4 texelFetchOffset( sampler1D sampler, int P, int lod, int offset);
714 ivec4 texelFetchOffset(isampler1D sampler, int P, int lod, int offset);
715 uvec4 texelFetchOffset(usampler1D sampler, int P, int lod, int offset);
717 vec4 texelFetchOffset( sampler2D sampler, ivec2 P, int lod, ivec2 offset);
718 ivec4 texelFetchOffset(isampler2D sampler, ivec2 P, int lod, ivec2 offset);
719 uvec4 texelFetchOffset(usampler2D sampler, ivec2 P, int lod, ivec2 offset);
721 vec4 texelFetchOffset( sampler3D sampler, ivec3 P, int lod, ivec3 offset);
722 ivec4 texelFetchOffset(isampler3D sampler, ivec3 P, int lod, ivec3 offset);
723 uvec4 texelFetchOffset(usampler3D sampler, ivec3 P, int lod, ivec3 offset);
725 vec4 texelFetchOffset( sampler1DArray sampler, ivec2 P, int lod, int offset);
726 ivec4 texelFetchOffset(isampler1DArray sampler, ivec2 P, int lod, int offset);
727 uvec4 texelFetchOffset(usampler1DArray sampler, ivec2 P, int lod, int offset);
729 vec4 texelFetchOffset( sampler2DArray sampler, ivec3 P, int lod, ivec2 offset);
730 ivec4 texelFetchOffset(isampler2DArray sampler, ivec3 P, int lod, ivec2 offset);
731 uvec4 texelFetchOffset(usampler2DArray sampler, ivec3 P, int lod, ivec2 offset);
733 /* textureProjOffset - no bias */
734 vec4 textureProjOffset( sampler1D sampler, vec2 P, int offset);
735 ivec4 textureProjOffset(isampler1D sampler, vec2 P, int offset);
736 uvec4 textureProjOffset(usampler1D sampler, vec2 P, int offset);
737 vec4 textureProjOffset( sampler1D sampler, vec4 P, int offset);
738 ivec4 textureProjOffset(isampler1D sampler, vec4 P, int offset);
739 uvec4 textureProjOffset(usampler1D sampler, vec4 P, int offset);
741 vec4 textureProjOffset( sampler2D sampler, vec3 P, ivec2 offset);
742 ivec4 textureProjOffset(isampler2D sampler, vec3 P, ivec2 offset);
743 uvec4 textureProjOffset(usampler2D sampler, vec3 P, ivec2 offset);
744 vec4 textureProjOffset( sampler2D sampler, vec4 P, ivec2 offset);
745 ivec4 textureProjOffset(isampler2D sampler, vec4 P, ivec2 offset);
746 uvec4 textureProjOffset(usampler2D sampler, vec4 P, ivec2 offset);
748 vec4 textureProjOffset( sampler3D sampler, vec4 P, ivec3 offset);
749 ivec4 textureProjOffset(isampler3D sampler, vec4 P, ivec3 offset);
750 uvec4 textureProjOffset(usampler3D sampler, vec4 P, ivec3 offset);
752 float textureProjOffset(sampler1DShadow sampler, vec4 P, int offset);
753 float textureProjOffset(sampler2DShadow sampler, vec4 P, ivec2 offset);
755 /* textureProjOffsetOffset - bias variants */
756 vec4 textureProjOffset( sampler1D sampler, vec2 P, int offset, float bias);
757 ivec4 textureProjOffset(isampler1D sampler, vec2 P, int offset, float bias);
758 uvec4 textureProjOffset(usampler1D sampler, vec2 P, int offset, float bias);
759 vec4 textureProjOffset( sampler1D sampler, vec4 P, int offset, float bias);
760 ivec4 textureProjOffset(isampler1D sampler, vec4 P, int offset, float bias);
761 uvec4 textureProjOffset(usampler1D sampler, vec4 P, int offset, float bias);
763 vec4 textureProjOffset( sampler2D sampler, vec3 P, ivec2 offset, float bias);
764 ivec4 textureProjOffset(isampler2D sampler, vec3 P, ivec2 offset, float bias);
765 uvec4 textureProjOffset(usampler2D sampler, vec3 P, ivec2 offset, float bias);
766 vec4 textureProjOffset( sampler2D sampler, vec4 P, ivec2 offset, float bias);
767 ivec4 textureProjOffset(isampler2D sampler, vec4 P, ivec2 offset, float bias);
768 uvec4 textureProjOffset(usampler2D sampler, vec4 P, ivec2 offset, float bias);
770 vec4 textureProjOffset( sampler3D sampler, vec4 P, ivec3 offset, float bias);
771 ivec4 textureProjOffset(isampler3D sampler, vec4 P, ivec3 offset, float bias);
772 uvec4 textureProjOffset(usampler3D sampler, vec4 P, ivec3 offset, float bias);
774 float textureProjOffset(sampler1DShadow s, vec4 P, int offset, float bias);
775 float textureProjOffset(sampler2DShadow s, vec4 P, ivec2 offset, float bias);
777 /* textureLodOffset */
778 vec4 textureLodOffset( sampler1D sampler, float P, float lod, int offset);
779 ivec4 textureLodOffset(isampler1D sampler, float P, float lod, int offset);
780 uvec4 textureLodOffset(usampler1D sampler, float P, float lod, int offset);
782 vec4 textureLodOffset( sampler2D sampler, vec2 P, float lod, ivec2 offset);
783 ivec4 textureLodOffset(isampler2D sampler, vec2 P, float lod, ivec2 offset);
784 uvec4 textureLodOffset(usampler2D sampler, vec2 P, float lod, ivec2 offset);
786 vec4 textureLodOffset( sampler3D sampler, vec3 P, float lod, ivec3 offset);
787 ivec4 textureLodOffset(isampler3D sampler, vec3 P, float lod, ivec3 offset);
788 uvec4 textureLodOffset(usampler3D sampler, vec3 P, float lod, ivec3 offset);
790 float textureLodOffset(sampler1DShadow samp, vec3 P, float lod, int offset);
791 float textureLodOffset(sampler2DShadow samp, vec3 P, float lod, ivec2 offset);
793 vec4 textureLodOffset( sampler1DArray sampler, vec2 P, float lod, int offset);
794 ivec4 textureLodOffset(isampler1DArray sampler, vec2 P, float lod, int offset);
795 uvec4 textureLodOffset(usampler1DArray sampler, vec2 P, float lod, int offset);
797 vec4 textureLodOffset( sampler2DArray samp, vec3 P, float lod, ivec2 offset);
798 ivec4 textureLodOffset(isampler2DArray samp, vec3 P, float lod, ivec2 offset);
799 uvec4 textureLodOffset(usampler2DArray samp, vec3 P, float lod, ivec2 offset);
801 float textureLodOffset(sampler1DArrayShadow s, vec3 P, float lod, int offset);
804 vec4 textureProjLod( sampler1D sampler, vec2 P, float lod);
805 ivec4 textureProjLod(isampler1D sampler, vec2 P, float lod);
806 uvec4 textureProjLod(usampler1D sampler, vec2 P, float lod);
807 vec4 textureProjLod( sampler1D sampler, vec4 P, float lod);
808 ivec4 textureProjLod(isampler1D sampler, vec4 P, float lod);
809 uvec4 textureProjLod(usampler1D sampler, vec4 P, float lod);
811 vec4 textureProjLod( sampler2D sampler, vec3 P, float lod);
812 ivec4 textureProjLod(isampler2D sampler, vec3 P, float lod);
813 uvec4 textureProjLod(usampler2D sampler, vec3 P, float lod);
814 vec4 textureProjLod( sampler2D sampler, vec4 P, float lod);
815 ivec4 textureProjLod(isampler2D sampler, vec4 P, float lod);
816 uvec4 textureProjLod(usampler2D sampler, vec4 P, float lod);
818 vec4 textureProjLod( sampler3D sampler, vec4 P, float lod);
819 ivec4 textureProjLod(isampler3D sampler, vec4 P, float lod);
820 uvec4 textureProjLod(usampler3D sampler, vec4 P, float lod);
822 float textureProjLod(sampler1DShadow sampler, vec4 P, float lod);
823 float textureProjLod(sampler2DShadow sampler, vec4 P, float lod);
825 /* textureProjLodOffset */
826 vec4 textureProjLodOffset( sampler1D sampler, vec2 P, float lod, int offset);
827 ivec4 textureProjLodOffset(isampler1D sampler, vec2 P, float lod, int offset);
828 uvec4 textureProjLodOffset(usampler1D sampler, vec2 P, float lod, int offset);
829 vec4 textureProjLodOffset( sampler1D sampler, vec4 P, float lod, int offset);
830 ivec4 textureProjLodOffset(isampler1D sampler, vec4 P, float lod, int offset);
831 uvec4 textureProjLodOffset(usampler1D sampler, vec4 P, float lod, int offset);
833 vec4 textureProjLodOffset( sampler2D sampler, vec3 P, float lod, ivec2 offset);
834 ivec4 textureProjLodOffset(isampler2D sampler, vec3 P, float lod, ivec2 offset);
835 uvec4 textureProjLodOffset(usampler2D sampler, vec3 P, float lod, ivec2 offset);
836 vec4 textureProjLodOffset( sampler2D sampler, vec4 P, float lod, ivec2 offset);
837 ivec4 textureProjLodOffset(isampler2D sampler, vec4 P, float lod, ivec2 offset);
838 uvec4 textureProjLodOffset(usampler2D sampler, vec4 P, float lod, ivec2 offset);
840 vec4 textureProjLodOffset( sampler3D sampler, vec4 P, float lod, ivec3 offset);
841 ivec4 textureProjLodOffset(isampler3D sampler, vec4 P, float lod, ivec3 offset);
842 uvec4 textureProjLodOffset(usampler3D sampler, vec4 P, float lod, ivec3 offset);
844 float textureProjLodOffset(sampler1DShadow s, vec4 P, float lod, int offset);
845 float textureProjLodOffset(sampler2DShadow s, vec4 P, float lod, ivec2 offset);
848 vec4 textureGrad( sampler1D sampler, float P, float dPdx, float dPdy);
849 ivec4 textureGrad(isampler1D sampler, float P, float dPdx, float dPdy);
850 uvec4 textureGrad(usampler1D sampler, float P, float dPdx, float dPdy);
852 vec4 textureGrad( sampler2D sampler, vec2 P, vec2 dPdx, vec2 dPdy);
853 ivec4 textureGrad(isampler2D sampler, vec2 P, vec2 dPdx, vec2 dPdy);
854 uvec4 textureGrad(usampler2D sampler, vec2 P, vec2 dPdx, vec2 dPdy);
856 vec4 textureGrad( sampler3D sampler, vec3 P, vec3 dPdx, vec3 dPdy);
857 ivec4 textureGrad(isampler3D sampler, vec3 P, vec3 dPdx, vec3 dPdy);
858 uvec4 textureGrad(usampler3D sampler, vec3 P, vec3 dPdx, vec3 dPdy);
860 vec4 textureGrad( samplerCube sampler, vec3 P, vec3 dPdx, vec3 dPdy);
861 ivec4 textureGrad(isamplerCube sampler, vec3 P, vec3 dPdx, vec3 dPdy);
862 uvec4 textureGrad(usamplerCube sampler, vec3 P, vec3 dPdx, vec3 dPdy);
864 float textureGrad(sampler1DShadow sampler, vec3 P, float dPdx, float dPdy);
865 float textureGrad(sampler2DShadow sampler, vec3 P, vec2 dPdx, vec2 dPdy);
866 float textureGrad(samplerCubeShadow sampler, vec4 P, vec3 dPdx, vec3 dPdy);
868 vec4 textureGrad( sampler1DArray sampler, vec2 P, float dPdx, float dPdy);
869 ivec4 textureGrad(isampler1DArray sampler, vec2 P, float dPdx, float dPdy);
870 uvec4 textureGrad(usampler1DArray sampler, vec2 P, float dPdx, float dPdy);
872 vec4 textureGrad( sampler2DArray sampler, vec3 P, vec2 dPdx, vec2 dPdy);
873 ivec4 textureGrad(isampler2DArray sampler, vec3 P, vec2 dPdx, vec2 dPdy);
874 uvec4 textureGrad(usampler2DArray sampler, vec3 P, vec2 dPdx, vec2 dPdy);
876 float textureGrad(sampler1DArrayShadow sampler, vec3 P, float dPdx, float dPdy);
877 float textureGrad(sampler2DArrayShadow sampler, vec4 P, vec2 dPdx, vec2 dPdy);
879 /* textureGradOffset */
880 vec4 textureGradOffset( sampler1D s, float P, float dx, float dy, int off);
881 ivec4 textureGradOffset(isampler1D s, float P, float dx, float dy, int offset);
882 uvec4 textureGradOffset(usampler1D s, float P, float dx, float dy, int offset);
884 vec4 textureGradOffset( sampler2D s, vec2 P, vec2 dx, vec2 dy, ivec2 offset);
885 ivec4 textureGradOffset(isampler2D s, vec2 P, vec2 dx, vec2 dy, ivec2 offset);
886 uvec4 textureGradOffset(usampler2D s, vec2 P, vec2 dx, vec2 dy, ivec2 offset);
888 vec4 textureGradOffset( sampler3D s, vec3 P, vec3 dx, vec3 dy, ivec3 offset);
889 ivec4 textureGradOffset(isampler3D s, vec3 P, vec3 dx, vec3 dy, ivec3 offset);
890 uvec4 textureGradOffset(usampler3D s, vec3 P, vec3 dx, vec3 dy, ivec3 offset);
892 float textureGradOffset(sampler1DShadow s, vec3 P, float dx, float dy, int off);
893 float textureGradOffset(sampler2DShadow s, vec3 P, vec2 dx, vec2 dy, ivec2 off);
895 vec4 textureGradOffset( sampler1DArray s, vec2 P, float dx, float dy, int off);
896 ivec4 textureGradOffset(isampler1DArray s, vec2 P, float dx, float dy, int off);
897 uvec4 textureGradOffset(usampler1DArray s, vec2 P, float dx, float dy, int off);
899 vec4 textureGradOffset( sampler2DArray s, vec3 P, vec2 dx, vec2 dy, ivec2 off);
900 ivec4 textureGradOffset(isampler2DArray s, vec3 P, vec2 dx, vec2 dy, ivec2 off);
901 uvec4 textureGradOffset(usampler2DArray s, vec3 P, vec2 dx, vec2 dy, ivec2 off);
903 float textureGradOffset(sampler1DArrayShadow s, vec3 P, float dx, float dy, int o);
904 float textureGradOffset(sampler2DArrayShadow s, vec4 P, vec2 dx, vec2 dy, ivec2 o);
906 /* textureProjGrad */
907 vec4 textureProjGrad( sampler1D sampler, vec2 P, float dPdx, float dPdy);
908 ivec4 textureProjGrad(isampler1D sampler, vec2 P, float dPdx, float dPdy);
909 uvec4 textureProjGrad(usampler1D sampler, vec2 P, float dPdx, float dPdy);
910 vec4 textureProjGrad( sampler1D sampler, vec4 P, float dPdx, float dPdy);
911 ivec4 textureProjGrad(isampler1D sampler, vec4 P, float dPdx, float dPdy);
912 uvec4 textureProjGrad(usampler1D sampler, vec4 P, float dPdx, float dPdy);
914 vec4 textureProjGrad( sampler2D sampler, vec3 P, vec2 dPdx, vec2 dPdy);
915 ivec4 textureProjGrad(isampler2D sampler, vec3 P, vec2 dPdx, vec2 dPdy);
916 uvec4 textureProjGrad(usampler2D sampler, vec3 P, vec2 dPdx, vec2 dPdy);
917 vec4 textureProjGrad( sampler2D sampler, vec4 P, vec2 dPdx, vec2 dPdy);
918 ivec4 textureProjGrad(isampler2D sampler, vec4 P, vec2 dPdx, vec2 dPdy);
919 uvec4 textureProjGrad(usampler2D sampler, vec4 P, vec2 dPdx, vec2 dPdy);
921 vec4 textureProjGrad( sampler3D sampler, vec4 P, vec3 dPdx, vec3 dPdy);
922 ivec4 textureProjGrad(isampler3D sampler, vec4 P, vec3 dPdx, vec3 dPdy);
923 uvec4 textureProjGrad(usampler3D sampler, vec4 P, vec3 dPdx, vec3 dPdy);
925 float textureProjGrad(sampler1DShadow sampler, vec4 P, float dPdx, float dPdy);
926 float textureProjGrad(sampler2DShadow sampler, vec4 P, vec2 dPdx, vec2 dPdy);
928 /* textureProjGradOffset */
929 vec4 textureProjGradOffset( sampler1D s, vec2 P, float dx, float dy, int off);
930 ivec4 textureProjGradOffset(isampler1D s, vec2 P, float dx, float dy, int off);
931 uvec4 textureProjGradOffset(usampler1D s, vec2 P, float dx, float dy, int off);
932 vec4 textureProjGradOffset( sampler1D s, vec4 P, float dx, float dy, int off);
933 ivec4 textureProjGradOffset(isampler1D s, vec4 P, float dx, float dy, int off);
934 uvec4 textureProjGradOffset(usampler1D s, vec4 P, float dx, float dy, int off);
936 vec4 textureProjGradOffset( sampler2D s, vec3 P, vec2 dx, vec2 dy, ivec2 off);
937 ivec4 textureProjGradOffset(isampler2D s, vec3 P, vec2 dx, vec2 dy, ivec2 off);
938 uvec4 textureProjGradOffset(usampler2D s, vec3 P, vec2 dx, vec2 dy, ivec2 off);
939 vec4 textureProjGradOffset( sampler2D s, vec4 P, vec2 dx, vec2 dy, ivec2 off);
940 ivec4 textureProjGradOffset(isampler2D s, vec4 P, vec2 dx, vec2 dy, ivec2 off);
941 uvec4 textureProjGradOffset(usampler2D s, vec4 P, vec2 dx, vec2 dy, ivec2 off);
943 vec4 textureProjGradOffset( sampler3D s, vec4 P, vec3 dx, vec3 dy, ivec3 off);
944 ivec4 textureProjGradOffset(isampler3D s, vec4 P, vec3 dx, vec3 dy, ivec3 off);
945 uvec4 textureProjGradOffset(usampler3D s, vec4 P, vec3 dx, vec3 dy, ivec3 off);
947 float textureProjGradOffset(sampler1DShadow s, vec4 P, float dx, float dy, int o);
948 float textureProjGradOffset(sampler2DShadow s, vec4 P, vec2 dx, vec2 dy, ivec2 o);
951 * The following texture functions are deprecated:
953 vec4 texture1D (sampler1D sampler, float coord);
954 vec4 texture1DProj (sampler1D sampler, vec2 coord);
955 vec4 texture1DProj (sampler1D sampler, vec4 coord);
956 vec4 texture1D (sampler1D sampler, float coord, float bias);
957 vec4 texture1DProj (sampler1D sampler, vec2 coord, float bias);
958 vec4 texture1DProj (sampler1D sampler, vec4 coord, float bias);
959 vec4 texture1DLod (sampler1D sampler, float coord, float lod);
960 vec4 texture1DProjLod(sampler1D sampler, vec2 coord, float lod);
961 vec4 texture1DProjLod(sampler1D sampler, vec4 coord, float lod);
963 vec4 texture2D (sampler2D sampler, vec2 coord);
964 vec4 texture2DProj (sampler2D sampler, vec3 coord);
965 vec4 texture2DProj (sampler2D sampler, vec4 coord);
966 vec4 texture2D (sampler2D sampler, vec2 coord, float bias);
967 vec4 texture2DProj (sampler2D sampler, vec3 coord, float bias);
968 vec4 texture2DProj (sampler2D sampler, vec4 coord, float bias);
969 vec4 texture2DLod (sampler2D sampler, vec2 coord, float lod);
970 vec4 texture2DProjLod(sampler2D sampler, vec3 coord, float lod);
971 vec4 texture2DProjLod(sampler2D sampler, vec4 coord, float lod);
973 vec4 texture3D (sampler3D sampler, vec3 coord);
974 vec4 texture3DProj (sampler3D sampler, vec4 coord);
975 vec4 texture3D (sampler3D sampler, vec3 coord, float bias);
976 vec4 texture3DProj (sampler3D sampler, vec4 coord, float bias);
977 vec4 texture3DLod (sampler3D sampler, vec3 coord, float lod);
978 vec4 texture3DProjLod(sampler3D sampler, vec4 coord, float lod);
980 vec4 textureCube (samplerCube sampler, vec3 coord);
981 vec4 textureCube (samplerCube sampler, vec3 coord, float bias);
982 vec4 textureCubeLod (samplerCube sampler, vec3 coord, float lod);
984 vec4 shadow1D (sampler1DShadow sampler, vec3 coord);
985 vec4 shadow2D (sampler2DShadow sampler, vec3 coord);
986 vec4 shadow1DProj (sampler1DShadow sampler, vec4 coord);
987 vec4 shadow2DProj (sampler2DShadow sampler, vec4 coord);
988 vec4 shadow1D (sampler1DShadow sampler, vec3 coord, float bias);
989 vec4 shadow2D (sampler2DShadow sampler, vec3 coord, float bias);
990 vec4 shadow1DProj (sampler1DShadow sampler, vec4 coord, float bias);
991 vec4 shadow2DProj (sampler2DShadow sampler, vec4 coord, float bias);
992 vec4 shadow1DLod (sampler1DShadow sampler, vec3 coord, float lod);
993 vec4 shadow2DLod (sampler2DShadow sampler, vec3 coord, float lod);
994 vec4 shadow1DProjLod(sampler1DShadow sampler, vec4 coord, float lod);
995 vec4 shadow2DProjLod(sampler2DShadow sampler, vec4 coord, float lod);
998 * 8.8 - Fragment Processing Functions
1000 float dFdx(float p);
1005 float dFdy(float p);
1010 float fwidth(float p);
1011 vec2 fwidth(vec2 p);
1012 vec3 fwidth(vec3 p);
1013 vec4 fwidth(vec4 p);
1016 * 8.9 - Noise Functions
1018 float noise1(float x);
1019 float noise1(vec2 x);
1020 float noise1(vec3 x);
1021 float noise1(vec4 x);
1023 vec2 noise2(float x);
1024 vec2 noise2(vec2 x);
1025 vec2 noise2(vec3 x);
1026 vec2 noise2(vec4 x);
1028 vec3 noise3(float x);
1029 vec3 noise3(vec2 x);
1030 vec3 noise3(vec3 x);
1031 vec3 noise3(vec4 x);
1033 vec4 noise4(float x);
1034 vec4 noise4(vec2 x);
1035 vec4 noise4(vec3 x);
1036 vec4 noise4(vec4 x);