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);
83 * 8.2 - Exponential Functions
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);
115 float inversesqrt(float x);
116 vec2 inversesqrt(vec2 x);
117 vec3 inversesqrt(vec3 x);
118 vec4 inversesqrt(vec4 x);
121 * 8.3 - Common Functions
141 float floor(float x);
146 float trunc(float x);
151 float roundEven(float x);
152 vec2 roundEven(vec2 x);
153 vec3 roundEven(vec3 x);
154 vec4 roundEven(vec4 x);
161 float fract(float x);
166 float mod(float x, float y);
167 vec2 mod(vec2 x, float y);
168 vec3 mod(vec3 x, float y);
169 vec4 mod(vec4 x, float y);
171 vec2 mod(vec2 x, vec2 y);
172 vec3 mod(vec3 x, vec3 y);
173 vec4 mod(vec4 x, vec4 y);
175 float min(float x, float y);
176 vec2 min(vec2 x, vec2 y);
177 vec3 min(vec3 x, vec3 y);
178 vec4 min(vec4 x, vec4 y);
180 vec2 min(vec2 x, float y);
181 vec3 min(vec3 x, float y);
182 vec4 min(vec4 x, float y);
184 int min(int x, int y);
185 ivec2 min(ivec2 x, ivec2 y);
186 ivec3 min(ivec3 x, ivec3 y);
187 ivec4 min(ivec4 x, ivec4 y);
189 ivec2 min(ivec2 x, int y);
190 ivec3 min(ivec3 x, int y);
191 ivec4 min(ivec4 x, int y);
193 uint min(uint x, uint y);
194 uvec2 min(uvec2 x, uvec2 y);
195 uvec3 min(uvec3 x, uvec3 y);
196 uvec4 min(uvec4 x, uvec4 y);
198 uvec2 min(uvec2 x, uint y);
199 uvec3 min(uvec3 x, uint y);
200 uvec4 min(uvec4 x, uint y);
202 float max(float x, float y);
203 vec2 max(vec2 x, vec2 y);
204 vec3 max(vec3 x, vec3 y);
205 vec4 max(vec4 x, vec4 y);
207 vec2 max(vec2 x, float y);
208 vec3 max(vec3 x, float y);
209 vec4 max(vec4 x, float y);
211 int max(int x, int y);
212 ivec2 max(ivec2 x, ivec2 y);
213 ivec3 max(ivec3 x, ivec3 y);
214 ivec4 max(ivec4 x, ivec4 y);
216 ivec2 max(ivec2 x, int y);
217 ivec3 max(ivec3 x, int y);
218 ivec4 max(ivec4 x, int y);
220 uint max(uint x, uint y);
221 uvec2 max(uvec2 x, uvec2 y);
222 uvec3 max(uvec3 x, uvec3 y);
223 uvec4 max(uvec4 x, uvec4 y);
225 uvec2 max(uvec2 x, uint y);
226 uvec3 max(uvec3 x, uint y);
227 uvec4 max(uvec4 x, uint y);
229 float clamp(float x, float minVal, float maxVal);
230 vec2 clamp(vec2 x, vec2 minVal, vec2 maxVal);
231 vec3 clamp(vec3 x, vec3 minVal, vec3 maxVal);
232 vec4 clamp(vec4 x, vec4 minVal, vec4 maxVal);
234 vec2 clamp(vec2 x, float minVal, float maxVal);
235 vec3 clamp(vec3 x, float minVal, float maxVal);
236 vec4 clamp(vec4 x, float minVal, float maxVal);
238 int clamp(int x, int minVal, int maxVal);
239 ivec2 clamp(ivec2 x, ivec2 minVal, ivec2 maxVal);
240 ivec3 clamp(ivec3 x, ivec3 minVal, ivec3 maxVal);
241 ivec4 clamp(ivec4 x, ivec4 minVal, ivec4 maxVal);
243 ivec2 clamp(ivec2 x, int minVal, int maxVal);
244 ivec3 clamp(ivec3 x, int minVal, int maxVal);
245 ivec4 clamp(ivec4 x, int minVal, int maxVal);
247 uint clamp(uint x, uint minVal, uint maxVal);
248 uvec2 clamp(uvec2 x, uvec2 minVal, uvec2 maxVal);
249 uvec3 clamp(uvec3 x, uvec3 minVal, uvec3 maxVal);
250 uvec4 clamp(uvec4 x, uvec4 minVal, uvec4 maxVal);
252 uvec2 clamp(uvec2 x, uint minVal, uint maxVal);
253 uvec3 clamp(uvec3 x, uint minVal, uint maxVal);
254 uvec4 clamp(uvec4 x, uint minVal, uint maxVal);
256 float mix(float x, float y, float a);
257 vec2 mix(vec2 x, vec2 y, vec2 a);
258 vec3 mix(vec3 x, vec3 y, vec3 a);
259 vec4 mix(vec4 x, vec4 y, vec4 a);
261 vec2 mix(vec2 x, vec2 y, float a);
262 vec3 mix(vec3 x, vec3 y, float a);
263 vec4 mix(vec4 x, vec4 y, float a);
265 float step(float edge, float x);
266 vec2 step(vec2 edge, vec2 x);
267 vec3 step(vec3 edge, vec3 x);
268 vec4 step(vec4 edge, vec4 x);
270 vec2 step(float edge, vec2 x);
271 vec3 step(float edge, vec3 x);
272 vec4 step(float edge, vec4 x);
274 float smoothstep(float edge0, float edge1, float x);
275 vec2 smoothstep(vec2 edge0, vec2 edge1, vec2 x);
276 vec3 smoothstep(vec3 edge0, vec3 edge1, vec3 x);
277 vec4 smoothstep(vec4 edge0, vec4 edge1, vec4 x);
279 vec2 smoothstep(float edge0, float edge1, vec2 x);
280 vec3 smoothstep(float edge0, float edge1, vec3 x);
281 vec4 smoothstep(float edge0, float edge1, vec4 x);
296 * 8.4 - Geometric Functions
298 float length(float x);
299 float length(vec2 x);
300 float length(vec3 x);
301 float length(vec4 x);
303 float distance(float p0, float p1);
304 float distance(vec2 p0, vec2 p1);
305 float distance(vec3 p0, vec3 p1);
306 float distance(vec4 p0, vec4 p1);
308 float dot(float x, float y);
309 float dot(vec2 x, vec2 y);
310 float dot(vec3 x, vec3 y);
311 float dot(vec4 x, vec4 y);
313 vec3 cross(vec3 x, vec3 y);
315 float normalize(float x);
316 vec2 normalize(vec2 x);
317 vec3 normalize(vec3 x);
318 vec4 normalize(vec4 x);
322 float faceforward(float N, float I, float Nref);
323 vec2 faceforward(vec2 N, vec2 I, vec2 Nref);
324 vec3 faceforward(vec3 N, vec3 I, vec3 Nref);
325 vec4 faceforward(vec4 N, vec4 I, vec4 Nref);
327 float reflect(float I, float N);
328 vec2 reflect(vec2 I, vec2 N);
329 vec3 reflect(vec3 I, vec3 N);
330 vec4 reflect(vec4 I, vec4 N);
332 float refract(float I, float N, float eta);
333 vec2 refract(vec2 I, vec2 N, float eta);
334 vec3 refract(vec3 I, vec3 N, float eta);
335 vec4 refract(vec4 I, vec4 N, float eta);
339 * 8.5 - Matrix Functions
341 mat2 matrixCompMult(mat2 x, mat2 y);
342 mat3 matrixCompMult(mat3 x, mat3 y);
343 mat4 matrixCompMult(mat4 x, mat4 y);
344 mat2x3 matrixCompMult(mat2x3 x, mat2x3 y);
345 mat2x4 matrixCompMult(mat2x4 x, mat2x4 y);
346 mat3x2 matrixCompMult(mat3x2 x, mat3x2 y);
347 mat3x4 matrixCompMult(mat3x4 x, mat3x4 y);
348 mat4x2 matrixCompMult(mat4x2 x, mat4x2 y);
349 mat4x3 matrixCompMult(mat4x3 x, mat4x3 y);
351 mat2 outerProduct(vec2 c, vec2 r);
352 mat3 outerProduct(vec3 c, vec3 r);
353 mat4 outerProduct(vec4 c, vec4 r);
355 mat2x3 outerProduct(vec3 c, vec2 r);
356 mat3x2 outerProduct(vec2 c, vec3 r);
358 mat2x4 outerProduct(vec4 c, vec2 r);
359 mat4x2 outerProduct(vec2 c, vec4 r);
361 mat3x4 outerProduct(vec4 c, vec3 r);
362 mat4x3 outerProduct(vec3 c, vec4 r);
364 mat2 transpose(mat2 m);
365 mat3 transpose(mat3 m);
366 mat4 transpose(mat4 m);
368 mat2x3 transpose(mat3x2 m);
369 mat3x2 transpose(mat2x3 m);
371 mat2x4 transpose(mat4x2 m);
372 mat4x2 transpose(mat2x4 m);
374 mat3x4 transpose(mat4x3 m);
375 mat4x3 transpose(mat3x4 m);
378 * 8.6 - Vector Relational Functions
380 bvec2 lessThan( vec2 x, vec2 y);
381 bvec3 lessThan( vec3 x, vec3 y);
382 bvec4 lessThan( vec4 x, vec4 y);
383 bvec2 lessThan(ivec2 x, ivec2 y);
384 bvec3 lessThan(ivec3 x, ivec3 y);
385 bvec4 lessThan(ivec4 x, ivec4 y);
386 bvec2 lessThan(uvec2 x, uvec2 y);
387 bvec3 lessThan(uvec3 x, uvec3 y);
388 bvec4 lessThan(uvec4 x, uvec4 y);
390 bvec2 lessThanEqual( vec2 x, vec2 y);
391 bvec3 lessThanEqual( vec3 x, vec3 y);
392 bvec4 lessThanEqual( vec4 x, vec4 y);
393 bvec2 lessThanEqual(ivec2 x, ivec2 y);
394 bvec3 lessThanEqual(ivec3 x, ivec3 y);
395 bvec4 lessThanEqual(ivec4 x, ivec4 y);
396 bvec2 lessThanEqual(uvec2 x, uvec2 y);
397 bvec3 lessThanEqual(uvec3 x, uvec3 y);
398 bvec4 lessThanEqual(uvec4 x, uvec4 y);
400 bvec2 greaterThan( vec2 x, vec2 y);
401 bvec3 greaterThan( vec3 x, vec3 y);
402 bvec4 greaterThan( vec4 x, vec4 y);
403 bvec2 greaterThan(ivec2 x, ivec2 y);
404 bvec3 greaterThan(ivec3 x, ivec3 y);
405 bvec4 greaterThan(ivec4 x, ivec4 y);
406 bvec2 greaterThan(uvec2 x, uvec2 y);
407 bvec3 greaterThan(uvec3 x, uvec3 y);
408 bvec4 greaterThan(uvec4 x, uvec4 y);
410 bvec2 greaterThanEqual( vec2 x, vec2 y);
411 bvec3 greaterThanEqual( vec3 x, vec3 y);
412 bvec4 greaterThanEqual( vec4 x, vec4 y);
413 bvec2 greaterThanEqual(ivec2 x, ivec2 y);
414 bvec3 greaterThanEqual(ivec3 x, ivec3 y);
415 bvec4 greaterThanEqual(ivec4 x, ivec4 y);
416 bvec2 greaterThanEqual(uvec2 x, uvec2 y);
417 bvec3 greaterThanEqual(uvec3 x, uvec3 y);
418 bvec4 greaterThanEqual(uvec4 x, uvec4 y);
420 bvec2 equal( vec2 x, vec2 y);
421 bvec3 equal( vec3 x, vec3 y);
422 bvec4 equal( vec4 x, vec4 y);
423 bvec2 equal(ivec2 x, ivec2 y);
424 bvec3 equal(ivec3 x, ivec3 y);
425 bvec4 equal(ivec4 x, ivec4 y);
426 bvec2 equal(uvec2 x, uvec2 y);
427 bvec3 equal(uvec3 x, uvec3 y);
428 bvec4 equal(uvec4 x, uvec4 y);
429 bvec2 equal(bvec2 x, bvec2 y);
430 bvec3 equal(bvec3 x, bvec3 y);
431 bvec4 equal(bvec4 x, bvec4 y);
433 bvec2 notEqual( vec2 x, vec2 y);
434 bvec3 notEqual( vec3 x, vec3 y);
435 bvec4 notEqual( vec4 x, vec4 y);
436 bvec2 notEqual(ivec2 x, ivec2 y);
437 bvec3 notEqual(ivec3 x, ivec3 y);
438 bvec4 notEqual(ivec4 x, ivec4 y);
439 bvec2 notEqual(uvec2 x, uvec2 y);
440 bvec3 notEqual(uvec3 x, uvec3 y);
441 bvec4 notEqual(uvec4 x, uvec4 y);
442 bvec2 notEqual(bvec2 x, bvec2 y);
443 bvec3 notEqual(bvec3 x, bvec3 y);
444 bvec4 notEqual(bvec4 x, bvec4 y);
459 * 8.7 - Texture Lookup Functions
464 int textureSize( sampler1D sampler, int lod);
465 int textureSize(isampler1D sampler, int lod);
466 int textureSize(usampler1D sampler, int lod);
468 ivec2 textureSize( sampler2D sampler, int lod);
469 ivec2 textureSize(isampler2D sampler, int lod);
470 ivec2 textureSize(usampler2D sampler, int lod);
472 ivec3 textureSize( sampler3D sampler, int lod);
473 ivec3 textureSize(isampler3D sampler, int lod);
474 ivec3 textureSize(usampler3D sampler, int lod);
476 ivec2 textureSize( samplerCube sampler, int lod);
477 ivec2 textureSize(isamplerCube sampler, int lod);
478 ivec2 textureSize(usamplerCube sampler, int lod);
480 int textureSize(sampler1DShadow sampler, int lod);
481 ivec2 textureSize(sampler2DShadow sampler, int lod);
482 ivec2 textureSize(samplerCubeShadow sampler, int lod);
484 ivec2 textureSize( sampler1DArray sampler, int lod);
485 ivec2 textureSize(isampler1DArray sampler, int lod);
486 ivec2 textureSize(usampler1DArray sampler, int lod);
487 ivec3 textureSize( sampler2DArray sampler, int lod);
488 ivec2 textureSize(isampler2DArray sampler, int lod);
489 ivec2 textureSize(usampler2DArray sampler, int lod);
491 ivec2 textureSize(sampler1DArrayShadow sampler, int lod);
492 ivec3 textureSize(sampler2DArrayShadow sampler, int lod);
495 /* texture - no bias */
496 vec4 texture( sampler1D sampler, float P);
497 ivec4 texture(isampler1D sampler, float P);
498 uvec4 texture(usampler1D sampler, float P);
500 vec4 texture( sampler2D sampler, vec2 P);
501 ivec4 texture(isampler2D sampler, vec2 P);
502 uvec4 texture(usampler2D sampler, vec2 P);
504 vec4 texture( sampler3D sampler, vec3 P);
505 ivec4 texture(isampler3D sampler, vec3 P);
506 uvec4 texture(usampler3D sampler, vec3 P);
508 vec4 texture( samplerCube sampler, vec3 P);
509 ivec4 texture(isamplerCube sampler, vec3 P);
510 uvec4 texture(usamplerCube sampler, vec3 P);
512 float texture(sampler1DShadow sampler, vec3 P);
513 float texture(sampler2DShadow sampler, vec3 P);
514 float texture(samplerCubeShadow sampler, vec4 P);
516 vec4 texture( sampler1DArray sampler, vec2 P);
517 ivec4 texture(isampler1DArray sampler, vec2 P);
518 uvec4 texture(usampler1DArray sampler, vec2 P);
520 vec4 texture( sampler2DArray sampler, vec3 P);
521 ivec4 texture(isampler2DArray sampler, vec3 P);
522 uvec4 texture(usampler2DArray sampler, vec3 P);
524 float texture(sampler1DArrayShadow sampler, vec3 P);
525 float texture(sampler2DArrayShadow sampler, vec4 P);
527 /* texture - bias variants */
528 vec4 texture( sampler1D sampler, float P, float bias);
529 ivec4 texture(isampler1D sampler, float P, float bias);
530 uvec4 texture(usampler1D sampler, float P, float bias);
532 vec4 texture( sampler2D sampler, vec2 P, float bias);
533 ivec4 texture(isampler2D sampler, vec2 P, float bias);
534 uvec4 texture(usampler2D sampler, vec2 P, float bias);
536 vec4 texture( sampler3D sampler, vec3 P, float bias);
537 ivec4 texture(isampler3D sampler, vec3 P, float bias);
538 uvec4 texture(usampler3D sampler, vec3 P, float bias);
540 vec4 texture( samplerCube sampler, vec3 P, float bias);
541 ivec4 texture(isamplerCube sampler, vec3 P, float bias);
542 uvec4 texture(usamplerCube sampler, vec3 P, float bias);
544 float texture(sampler1DShadow sampler, vec3 P, float bias);
545 float texture(sampler2DShadow sampler, vec3 P, float bias);
546 float texture(samplerCubeShadow sampler, vec4 P, float bias);
548 vec4 texture( sampler1DArray sampler, vec2 P, float bias);
549 ivec4 texture(isampler1DArray sampler, vec2 P, float bias);
550 uvec4 texture(usampler1DArray sampler, vec2 P, float bias);
552 vec4 texture( sampler2DArray sampler, vec3 P, float bias);
553 ivec4 texture(isampler2DArray sampler, vec3 P, float bias);
554 uvec4 texture(usampler2DArray sampler, vec3 P, float bias);
556 float texture(sampler1DArrayShadow sampler, vec3 P, float bias);
558 /* textureProj - no bias */
559 vec4 textureProj( sampler1D sampler, vec2 P);
560 ivec4 textureProj(isampler1D sampler, vec2 P);
561 uvec4 textureProj(usampler1D sampler, vec2 P);
562 vec4 textureProj( sampler1D sampler, vec4 P);
563 ivec4 textureProj(isampler1D sampler, vec4 P);
564 uvec4 textureProj(usampler1D sampler, vec4 P);
566 vec4 textureProj( sampler2D sampler, vec3 P);
567 ivec4 textureProj(isampler2D sampler, vec3 P);
568 uvec4 textureProj(usampler2D sampler, vec3 P);
569 vec4 textureProj( sampler2D sampler, vec4 P);
570 ivec4 textureProj(isampler2D sampler, vec4 P);
571 uvec4 textureProj(usampler2D sampler, vec4 P);
573 vec4 textureProj( sampler3D sampler, vec4 P);
574 ivec4 textureProj(isampler3D sampler, vec4 P);
575 uvec4 textureProj(usampler3D sampler, vec4 P);
577 float textureProj(sampler1DShadow sampler, vec4 P);
578 float textureProj(sampler2DShadow sampler, vec4 P);
580 /* textureProj - bias variants */
581 vec4 textureProj( sampler1D sampler, vec2 P, float bias);
582 ivec4 textureProj(isampler1D sampler, vec2 P, float bias);
583 uvec4 textureProj(usampler1D sampler, vec2 P, float bias);
584 vec4 textureProj( sampler1D sampler, vec4 P, float bias);
585 ivec4 textureProj(isampler1D sampler, vec4 P, float bias);
586 uvec4 textureProj(usampler1D sampler, vec4 P, float bias);
588 vec4 textureProj( sampler2D sampler, vec3 P, float bias);
589 ivec4 textureProj(isampler2D sampler, vec3 P, float bias);
590 uvec4 textureProj(usampler2D sampler, vec3 P, float bias);
591 vec4 textureProj( sampler2D sampler, vec4 P, float bias);
592 ivec4 textureProj(isampler2D sampler, vec4 P, float bias);
593 uvec4 textureProj(usampler2D sampler, vec4 P, float bias);
595 vec4 textureProj( sampler3D sampler, vec4 P, float bias);
596 ivec4 textureProj(isampler3D sampler, vec4 P, float bias);
597 uvec4 textureProj(usampler3D sampler, vec4 P, float bias);
599 float textureProj(sampler1DShadow sampler, vec4 P, float bias);
600 float textureProj(sampler2DShadow sampler, vec4 P, float bias);
603 vec4 textureLod( sampler1D sampler, float P, float lod);
604 ivec4 textureLod(isampler1D sampler, float P, float lod);
605 uvec4 textureLod(usampler1D sampler, float P, float lod);
607 vec4 textureLod( sampler2D sampler, vec2 P, float lod);
608 ivec4 textureLod(isampler2D sampler, vec2 P, float lod);
609 uvec4 textureLod(usampler2D sampler, vec2 P, float lod);
611 vec4 textureLod( sampler3D sampler, vec3 P, float lod);
612 ivec4 textureLod(isampler3D sampler, vec3 P, float lod);
613 uvec4 textureLod(usampler3D sampler, vec3 P, float lod);
615 vec4 textureLod( samplerCube sampler, vec3 P, float lod);
616 ivec4 textureLod(isamplerCube sampler, vec3 P, float lod);
617 uvec4 textureLod(usamplerCube sampler, vec3 P, float lod);
619 float textureLod(sampler1DShadow sampler, vec3 P, float lod);
620 float textureLod(sampler2DShadow sampler, vec3 P, float lod);
622 vec4 textureLod( sampler1DArray sampler, vec2 P, float lod);
623 ivec4 textureLod(isampler1DArray sampler, vec2 P, float lod);
624 uvec4 textureLod(usampler1DArray sampler, vec2 P, float lod);
626 vec4 textureLod( sampler2DArray sampler, vec3 P, float lod);
627 ivec4 textureLod(isampler2DArray sampler, vec3 P, float lod);
628 uvec4 textureLod(usampler2DArray sampler, vec3 P, float lod);
630 float textureLod(sampler1DArrayShadow sampler, vec3 P, float lod);
633 /* textureOffset - no bias */
634 vec4 textureOffset( sampler1D sampler, float P, int offset);
635 ivec4 textureOffset(isampler1D sampler, float P, int offset);
636 uvec4 textureOffset(usampler1D sampler, float P, int offset);
638 vec4 textureOffset( sampler2D sampler, vec2 P, ivec2 offset);
639 ivec4 textureOffset(isampler2D sampler, vec2 P, ivec2 offset);
640 uvec4 textureOffset(usampler2D sampler, vec2 P, ivec2 offset);
642 vec4 textureOffset( sampler3D sampler, vec3 P, ivec3 offset);
643 ivec4 textureOffset(isampler3D sampler, vec3 P, ivec3 offset);
644 uvec4 textureOffset(usampler3D sampler, vec3 P, ivec3 offset);
646 float textureOffset(sampler1DShadow sampler, vec3 P, int offset);
647 float textureOffset(sampler2DShadow sampler, vec3 P, ivec2 offset);
649 vec4 textureOffset( sampler1DArray sampler, vec2 P, int offset);
650 ivec4 textureOffset(isampler1DArray sampler, vec2 P, int offset);
651 uvec4 textureOffset(usampler1DArray sampler, vec2 P, int offset);
653 vec4 textureOffset( sampler2DArray sampler, vec3 P, ivec2 offset);
654 ivec4 textureOffset(isampler2DArray sampler, vec3 P, ivec2 offset);
655 uvec4 textureOffset(usampler2DArray sampler, vec3 P, ivec2 offset);
657 float textureOffset(sampler1DArrayShadow sampler, vec3 P, int offset);
659 /* textureOffset - bias variants */
660 vec4 textureOffset( sampler1D sampler, float P, int offset, float bias);
661 ivec4 textureOffset(isampler1D sampler, float P, int offset, float bias);
662 uvec4 textureOffset(usampler1D sampler, float P, int offset, float bias);
664 vec4 textureOffset( sampler2D sampler, vec2 P, ivec2 offset, float bias);
665 ivec4 textureOffset(isampler2D sampler, vec2 P, ivec2 offset, float bias);
666 uvec4 textureOffset(usampler2D sampler, vec2 P, ivec2 offset, float bias);
668 vec4 textureOffset( sampler3D sampler, vec3 P, ivec3 offset, float bias);
669 ivec4 textureOffset(isampler3D sampler, vec3 P, ivec3 offset, float bias);
670 uvec4 textureOffset(usampler3D sampler, vec3 P, ivec3 offset, float bias);
672 float textureOffset(sampler1DShadow sampler, vec3 P, int offset, float bias);
673 float textureOffset(sampler2DShadow sampler, vec3 P, ivec2 offset, float bias);
675 vec4 textureOffset( sampler1DArray sampler, vec2 P, int offset, float bias);
676 ivec4 textureOffset(isampler1DArray sampler, vec2 P, int offset, float bias);
677 uvec4 textureOffset(usampler1DArray sampler, vec2 P, int offset, float bias);
679 vec4 textureOffset( sampler2DArray sampler, vec3 P, ivec2 offset, float bias);
680 ivec4 textureOffset(isampler2DArray sampler, vec3 P, ivec2 offset, float bias);
681 uvec4 textureOffset(usampler2DArray sampler, vec3 P, ivec2 offset, float bias);
683 float textureOffset(sampler1DArrayShadow samp, vec3 P, int offset, float bias);
687 vec4 texelFetch( sampler1D sampler, int P, int lod);
688 ivec4 texelFetch(isampler1D sampler, int P, int lod);
689 uvec4 texelFetch(usampler1D sampler, int P, int lod);
691 vec4 texelFetch( sampler2D sampler, ivec2 P, int lod);
692 ivec4 texelFetch(isampler2D sampler, ivec2 P, int lod);
693 uvec4 texelFetch(usampler2D sampler, ivec2 P, int lod);
695 vec4 texelFetch( sampler3D sampler, ivec3 P, int lod);
696 ivec4 texelFetch(isampler3D sampler, ivec3 P, int lod);
697 uvec4 texelFetch(usampler3D sampler, ivec3 P, int lod);
699 vec4 texelFetch( sampler1DArray sampler, ivec2 P, int lod);
700 ivec4 texelFetch(isampler1DArray sampler, ivec2 P, int lod);
701 uvec4 texelFetch(usampler1DArray sampler, ivec2 P, int lod);
703 vec4 texelFetch( sampler2DArray sampler, ivec3 P, int lod);
704 ivec4 texelFetch(isampler2DArray sampler, ivec3 P, int lod);
705 uvec4 texelFetch(usampler2DArray sampler, ivec3 P, int lod);
708 /* texelFetchOffset */
709 vec4 texelFetchOffset( sampler1D sampler, int P, int lod, int offset);
710 ivec4 texelFetchOffset(isampler1D sampler, int P, int lod, int offset);
711 uvec4 texelFetchOffset(usampler1D sampler, int P, int lod, int offset);
713 vec4 texelFetchOffset( sampler2D sampler, ivec2 P, int lod, ivec2 offset);
714 ivec4 texelFetchOffset(isampler2D sampler, ivec2 P, int lod, ivec2 offset);
715 uvec4 texelFetchOffset(usampler2D sampler, ivec2 P, int lod, ivec2 offset);
717 vec4 texelFetchOffset( sampler3D sampler, ivec3 P, int lod, ivec3 offset);
718 ivec4 texelFetchOffset(isampler3D sampler, ivec3 P, int lod, ivec3 offset);
719 uvec4 texelFetchOffset(usampler3D sampler, ivec3 P, int lod, ivec3 offset);
721 vec4 texelFetchOffset( sampler1DArray sampler, ivec2 P, int lod, int offset);
722 ivec4 texelFetchOffset(isampler1DArray sampler, ivec2 P, int lod, int offset);
723 uvec4 texelFetchOffset(usampler1DArray sampler, ivec2 P, int lod, int offset);
725 vec4 texelFetchOffset( sampler2DArray sampler, ivec3 P, int lod, ivec2 offset);
726 ivec4 texelFetchOffset(isampler2DArray sampler, ivec3 P, int lod, ivec2 offset);
727 uvec4 texelFetchOffset(usampler2DArray sampler, ivec3 P, int lod, ivec2 offset);
729 /* textureProjOffset - no bias */
730 vec4 textureProj( sampler1D sampler, vec2 P, int offset);
731 ivec4 textureProj(isampler1D sampler, vec2 P, int offset);
732 uvec4 textureProj(usampler1D sampler, vec2 P, int offset);
733 vec4 textureProj( sampler1D sampler, vec4 P, int offset);
734 ivec4 textureProj(isampler1D sampler, vec4 P, int offset);
735 uvec4 textureProj(usampler1D sampler, vec4 P, int offset);
737 vec4 textureProj( sampler2D sampler, vec3 P, ivec2 offset);
738 ivec4 textureProj(isampler2D sampler, vec3 P, ivec2 offset);
739 uvec4 textureProj(usampler2D sampler, vec3 P, ivec2 offset);
740 vec4 textureProj( sampler2D sampler, vec4 P, ivec2 offset);
741 ivec4 textureProj(isampler2D sampler, vec4 P, ivec2 offset);
742 uvec4 textureProj(usampler2D sampler, vec4 P, ivec2 offset);
744 vec4 textureProj( sampler3D sampler, vec4 P, ivec3 offset);
745 ivec4 textureProj(isampler3D sampler, vec4 P, ivec3 offset);
746 uvec4 textureProj(usampler3D sampler, vec4 P, ivec3 offset);
748 float textureProj(sampler1DShadow sampler, vec4 P, int offset);
749 float textureProj(sampler2DShadow sampler, vec4 P, ivec2 offset);
751 /* textureProjOffset - bias variants */
752 vec4 textureProj( sampler1D sampler, vec2 P, int offset, float bias);
753 ivec4 textureProj(isampler1D sampler, vec2 P, int offset, float bias);
754 uvec4 textureProj(usampler1D sampler, vec2 P, int offset, float bias);
755 vec4 textureProj( sampler1D sampler, vec4 P, int offset, float bias);
756 ivec4 textureProj(isampler1D sampler, vec4 P, int offset, float bias);
757 uvec4 textureProj(usampler1D sampler, vec4 P, int offset, float bias);
759 vec4 textureProj( sampler2D sampler, vec3 P, ivec2 offset, float bias);
760 ivec4 textureProj(isampler2D sampler, vec3 P, ivec2 offset, float bias);
761 uvec4 textureProj(usampler2D sampler, vec3 P, ivec2 offset, float bias);
762 vec4 textureProj( sampler2D sampler, vec4 P, ivec2 offset, float bias);
763 ivec4 textureProj(isampler2D sampler, vec4 P, ivec2 offset, float bias);
764 uvec4 textureProj(usampler2D sampler, vec4 P, ivec2 offset, float bias);
766 vec4 textureProj( sampler3D sampler, vec4 P, ivec3 offset, float bias);
767 ivec4 textureProj(isampler3D sampler, vec4 P, ivec3 offset, float bias);
768 uvec4 textureProj(usampler3D sampler, vec4 P, ivec3 offset, float bias);
770 float textureProj(sampler1DShadow sampler, vec4 P, int offset, float bias);
771 float textureProj(sampler2DShadow sampler, vec4 P, ivec2 offset, float bias);
773 /* textureLodOffset */
774 vec4 textureLodOffset( sampler1D sampler, float P, float lod, int offset);
775 ivec4 textureLodOffset(isampler1D sampler, float P, float lod, int offset);
776 uvec4 textureLodOffset(usampler1D sampler, float P, float lod, int offset);
778 vec4 textureLodOffset( sampler2D sampler, vec2 P, float lod, ivec2 offset);
779 ivec4 textureLodOffset(isampler2D sampler, vec2 P, float lod, ivec2 offset);
780 uvec4 textureLodOffset(usampler2D sampler, vec2 P, float lod, ivec2 offset);
782 vec4 textureLodOffset( sampler3D sampler, vec3 P, float lod, ivec3 offset);
783 ivec4 textureLodOffset(isampler3D sampler, vec3 P, float lod, ivec3 offset);
784 uvec4 textureLodOffset(usampler3D sampler, vec3 P, float lod, ivec3 offset);
786 float textureLodOffset(sampler1DShadow samp, vec3 P, float lod, int offset);
787 float textureLodOffset(sampler2DShadow samp, vec3 P, float lod, ivec2 offset);
789 vec4 textureLodOffset( sampler1DArray sampler, vec2 P, float lod, int offset);
790 ivec4 textureLodOffset(isampler1DArray sampler, vec2 P, float lod, int offset);
791 uvec4 textureLodOffset(usampler1DArray sampler, vec2 P, float lod, int offset);
793 vec4 textureLodOffset( sampler2DArray samp, vec3 P, float lod, ivec2 offset);
794 ivec4 textureLodOffset(isampler2DArray samp, vec3 P, float lod, ivec2 offset);
795 uvec4 textureLodOffset(usampler2DArray samp, vec3 P, float lod, ivec2 offset);
797 float textureLodOffset(sampler1DArrayShadow s, vec3 P, float lod, int offset);
801 vec4 textureProjLod( sampler1D sampler, vec2 P, float lod);
802 ivec4 textureProjLod(isampler1D sampler, vec2 P, float lod);
803 uvec4 textureProjLod(usampler1D sampler, vec2 P, float lod);
804 vec4 textureProjLod( sampler1D sampler, vec4 P, float lod);
805 ivec4 textureProjLod(isampler1D sampler, vec4 P, float lod);
806 uvec4 textureProjLod(usampler1D sampler, vec4 P, float lod);
808 vec4 textureProjLod( sampler2D sampler, vec3 P, float lod);
809 ivec4 textureProjLod(isampler2D sampler, vec3 P, float lod);
810 uvec4 textureProjLod(usampler2D sampler, vec3 P, float lod);
811 vec4 textureProjLod( sampler2D sampler, vec4 P, float lod);
812 ivec4 textureProjLod(isampler2D sampler, vec4 P, float lod);
813 uvec4 textureProjLod(usampler2D sampler, vec4 P, float lod);
815 vec4 textureProjLod( sampler3D sampler, vec4 P, float lod);
816 ivec4 textureProjLod(isampler3D sampler, vec4 P, float lod);
817 uvec4 textureProjLod(usampler3D sampler, vec4 P, float lod);
819 float textureProjLod(sampler1DShadow sampler, vec4 P, float lod);
820 float textureProjLod(sampler2DShadow sampler, vec4 P, float lod);
823 /* textureProjLodOffset */
824 vec4 textureProjLodOffset( sampler1D sampler, vec2 P, float lod, int offset);
825 ivec4 textureProjLodOffset(isampler1D sampler, vec2 P, float lod, int offset);
826 uvec4 textureProjLodOffset(usampler1D sampler, vec2 P, float lod, int offset);
827 vec4 textureProjLodOffset( sampler1D sampler, vec4 P, float lod, int offset);
828 ivec4 textureProjLodOffset(isampler1D sampler, vec4 P, float lod, int offset);
829 uvec4 textureProjLodOffset(usampler1D sampler, vec4 P, float lod, int offset);
831 vec4 textureProjLodOffset( sampler2D sampler, vec3 P, float lod, ivec2 offset);
832 ivec4 textureProjLodOffset(isampler2D sampler, vec3 P, float lod, ivec2 offset);
833 uvec4 textureProjLodOffset(usampler2D sampler, vec3 P, float lod, ivec2 offset);
834 vec4 textureProjLodOffset( sampler2D sampler, vec4 P, float lod, ivec2 offset);
835 ivec4 textureProjLodOffset(isampler2D sampler, vec4 P, float lod, ivec2 offset);
836 uvec4 textureProjLodOffset(usampler2D sampler, vec4 P, float lod, ivec2 offset);
838 vec4 textureProjLodOffset( sampler3D sampler, vec4 P, float lod, ivec3 offset);
839 ivec4 textureProjLodOffset(isampler3D sampler, vec4 P, float lod, ivec3 offset);
840 uvec4 textureProjLodOffset(usampler3D sampler, vec4 P, float lod, ivec3 offset);
842 float textureProjLodOffset(sampler1DShadow s, vec4 P, float lod, int offset);
843 float textureProjLodOffset(sampler2DShadow s, vec4 P, float lod, ivec2 offset);
847 vec4 textureGrad( sampler1D sampler, float P, float dPdx, float dPdy);
848 ivec4 textureGrad(isampler1D sampler, float P, float dPdx, float dPdy);
849 uvec4 textureGrad(usampler1D sampler, float P, float dPdx, float dPdy);
851 vec4 textureGrad( sampler2D sampler, vec2 P, vec2 dPdx, vec2 dPdy);
852 ivec4 textureGrad(isampler2D sampler, vec2 P, vec2 dPdx, vec2 dPdy);
853 uvec4 textureGrad(usampler2D sampler, vec2 P, vec2 dPdx, vec2 dPdy);
855 vec4 textureGrad( sampler3D sampler, vec3 P, vec3 dPdx, vec3 dPdy);
856 ivec4 textureGrad(isampler3D sampler, vec3 P, vec3 dPdx, vec3 dPdy);
857 uvec4 textureGrad(usampler3D sampler, vec3 P, vec3 dPdx, vec3 dPdy);
859 vec4 textureGrad( samplerCube sampler, vec3 P, vec3 dPdx, vec3 dPdy);
860 ivec4 textureGrad(isamplerCube sampler, vec3 P, vec3 dPdx, vec3 dPdy);
861 uvec4 textureGrad(usamplerCube sampler, vec3 P, vec3 dPdx, vec3 dPdy);
863 float textureGrad(sampler1DShadow sampler, vec3 P, float dPdx, float dPdy);
864 float textureGrad(sampler2DShadow sampler, vec3 P, vec2 dPdx, vec2 dPdy);
865 float textureGrad(samplerCubeShadow sampler, vec4 P, vec3 dPdx, vec3 dPdy);
867 vec4 textureGrad( sampler1DArray sampler, vec2 P, float dPdx, float dPdy);
868 ivec4 textureGrad(isampler1DArray sampler, vec2 P, float dPdx, float dPdy);
869 uvec4 textureGrad(usampler1DArray sampler, vec2 P, float dPdx, float dPdy);
871 vec4 textureGrad( sampler2DArray sampler, vec3 P, vec2 dPdx, vec2 dPdy);
872 ivec4 textureGrad(isampler2DArray sampler, vec3 P, vec2 dPdx, vec2 dPdy);
873 uvec4 textureGrad(usampler2DArray sampler, vec3 P, vec2 dPdx, vec2 dPdy);
875 float textureGrad(sampler1DArrayShadow sampler, vec3 P, float dPdx, float dPdy);
876 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 vec4 textureGradOffset( samplerCube s, vec3 P, vec3 dx, vec3 dy, ivec3 offset);
893 ivec4 textureGradOffset(isamplerCube s, vec3 P, vec3 dx, vec3 dy, ivec3 offset);
894 uvec4 textureGradOffset(usamplerCube s, vec3 P, vec3 dx, vec3 dy, ivec3 offset);
896 float textureGradOffset(sampler1DShadow s, vec3 P, float dx, float dy, int off);
897 float textureGradOffset(sampler2DShadow s, vec3 P, vec2 dx, vec2 dy, ivec2 off);
899 vec4 textureGradOffset( sampler1DArray s, vec2 P, float dx, float dy, int off);
900 ivec4 textureGradOffset(isampler1DArray s, vec2 P, float dx, float dy, int off);
901 uvec4 textureGradOffset(usampler1DArray s, vec2 P, float dx, float dy, int off);
903 vec4 textureGradOffset( sampler2DArray s, vec3 P, vec2 dx, vec2 dy, ivec2 off);
904 ivec4 textureGradOffset(isampler2DArray s, vec3 P, vec2 dx, vec2 dy, ivec2 off);
905 uvec4 textureGradOffset(usampler2DArray s, vec3 P, vec2 dx, vec2 dy, ivec2 off);
907 float textureGradOffset(sampler1DArrayShadow s, vec3 P, float dx, float dy, int o);
908 float textureGradOffset(sampler2DArrayShadow s, vec4 P, vec2 dx, vec2 dy, ivec2 o);
911 /* textureProjGrad */
912 vec4 textureProjGrad( sampler1D sampler, vec2 P, float dPdx, float dPdy);
913 ivec4 textureProjGrad(isampler1D sampler, vec2 P, float dPdx, float dPdy);
914 uvec4 textureProjGrad(usampler1D sampler, vec2 P, float dPdx, float dPdy);
915 vec4 textureProjGrad( sampler1D sampler, vec4 P, float dPdx, float dPdy);
916 ivec4 textureProjGrad(isampler1D sampler, vec4 P, float dPdx, float dPdy);
917 uvec4 textureProjGrad(usampler1D sampler, vec4 P, float dPdx, float dPdy);
919 vec4 textureProjGrad( sampler2D sampler, vec3 P, vec2 dPdx, vec2 dPdy);
920 ivec4 textureProjGrad(isampler2D sampler, vec3 P, vec2 dPdx, vec2 dPdy);
921 uvec4 textureProjGrad(usampler2D sampler, vec3 P, vec2 dPdx, vec2 dPdy);
922 vec4 textureProjGrad( sampler2D sampler, vec4 P, vec2 dPdx, vec2 dPdy);
923 ivec4 textureProjGrad(isampler2D sampler, vec4 P, vec2 dPdx, vec2 dPdy);
924 uvec4 textureProjGrad(usampler2D sampler, vec4 P, vec2 dPdx, vec2 dPdy);
926 vec4 textureProjGrad( sampler3D sampler, vec4 P, vec3 dPdx, vec3 dPdy);
927 ivec4 textureProjGrad(isampler3D sampler, vec4 P, vec3 dPdx, vec3 dPdy);
928 uvec4 textureProjGrad(usampler3D sampler, vec4 P, vec3 dPdx, vec3 dPdy);
930 float textureProjGrad(sampler1DShadow sampler, vec4 P, float dPdx, float dPdy);
931 float textureProjGrad(sampler2DShadow sampler, vec4 P, vec2 dPdx, vec2 dPdy);
934 /* textureProjGradOffset */
935 vec4 textureProjGradOffset( sampler1D s, vec2 P, float dx, float dy, int off);
936 ivec4 textureProjGradOffset(isampler1D s, vec2 P, float dx, float dy, int off);
937 uvec4 textureProjGradOffset(usampler1D s, vec2 P, float dx, float dy, int off);
938 vec4 textureProjGradOffset( sampler1D s, vec4 P, float dx, float dy, int off);
939 ivec4 textureProjGradOffset(isampler1D s, vec4 P, float dx, float dy, int off);
940 uvec4 textureProjGradOffset(usampler1D s, vec4 P, float dx, float dy, int off);
942 vec4 textureProjGradOffset( sampler2D s, vec3 P, vec2 dx, vec2 dy, ivec2 off);
943 ivec4 textureProjGradOffset(isampler2D s, vec3 P, vec2 dx, vec2 dy, ivec2 off);
944 uvec4 textureProjGradOffset(usampler2D s, vec3 P, vec2 dx, vec2 dy, ivec2 off);
945 vec4 textureProjGradOffset( sampler2D s, vec4 P, vec2 dx, vec2 dy, ivec2 off);
946 ivec4 textureProjGradOffset(isampler2D s, vec4 P, vec2 dx, vec2 dy, ivec2 off);
947 uvec4 textureProjGradOffset(usampler2D s, vec4 P, vec2 dx, vec2 dy, ivec2 off);
949 vec4 textureProjGradOffset( sampler3D s, vec4 P, vec3 dx, vec3 dy, ivec3 off);
950 ivec4 textureProjGradOffset(isampler3D s, vec4 P, vec3 dx, vec3 dy, ivec3 off);
951 uvec4 textureProjGradOffset(usampler3D s, vec4 P, vec3 dx, vec3 dy, ivec3 off);
953 float textureProjGradOffset(sampler1DShadow s, vec4 P, float dx, float dy, int o);
954 float textureProjGradOffset(sampler2DShadow s, vec4 P, vec2 dx, vec2 dy, vec2 o);
958 * The following texture functions are deprecated:
960 vec4 texture1D (sampler1D sampler, float coord);
961 vec4 texture1DProj (sampler1D sampler, vec2 coord);
962 vec4 texture1DProj (sampler1D sampler, vec4 coord);
963 vec4 texture1D (sampler1D sampler, float coord, float bias);
964 vec4 texture1DProj (sampler1D sampler, vec2 coord, float bias);
965 vec4 texture1DProj (sampler1D sampler, vec4 coord, float bias);
966 vec4 texture1DLod (sampler1D sampler, float coord, float lod);
967 vec4 texture1DProjLod(sampler1D sampler, vec2 coord, float lod);
968 vec4 texture1DProjLod(sampler1D sampler, vec4 coord, float lod);
970 vec4 texture2D (sampler2D sampler, vec2 coord);
971 vec4 texture2DProj (sampler2D sampler, vec3 coord);
972 vec4 texture2DProj (sampler2D sampler, vec4 coord);
973 vec4 texture2D (sampler2D sampler, vec2 coord, float bias);
974 vec4 texture2DProj (sampler2D sampler, vec3 coord, float bias);
975 vec4 texture2DProj (sampler2D sampler, vec4 coord, float bias);
976 vec4 texture2DLod (sampler2D sampler, vec2 coord, float lod);
977 vec4 texture2DProjLod(sampler2D sampler, vec3 coord, float lod);
978 vec4 texture2DProjLod(sampler2D sampler, vec4 coord, float lod);
980 vec4 texture3D (sampler3D sampler, vec3 coord);
981 vec4 texture3DProj (sampler3D sampler, vec4 coord);
982 vec4 texture3D (sampler3D sampler, vec3 coord, float bias);
983 vec4 texture3DProj (sampler3D sampler, vec4 coord, float bias);
984 vec4 texture3DLod (sampler3D sampler, vec3 coord, float lod);
985 vec4 texture3DProjLod(sampler3D sampler, vec4 coord, float lod);
987 vec4 textureCube (samplerCube sampler, vec3 coord);
988 vec4 textureCube (samplerCube sampler, vec3 coord, float bias);
989 vec4 textureCubeLod (samplerCube sampler, vec3 coord, float lod);
991 vec4 shadow1D (sampler1DShadow sampler, vec3 coord);
992 vec4 shadow2D (sampler2DShadow sampler, vec3 coord);
993 vec4 shadow1DProj (sampler1DShadow sampler, vec4 coord);
994 vec4 shadow2DProj (sampler2DShadow sampler, vec4 coord);
995 vec4 shadow1D (sampler1DShadow sampler, vec3 coord, float bias);
996 vec4 shadow2D (sampler2DShadow sampler, vec3 coord, float bias);
997 vec4 shadow1DProj (sampler1DShadow sampler, vec4 coord, float bias);
998 vec4 shadow2DProj (sampler2DShadow sampler, vec4 coord, float bias);
999 vec4 shadow1DLod (sampler1DShadow sampler, vec3 coord, float lod);
1000 vec4 shadow2DLod (sampler2DShadow sampler, vec3 coord, float lod);
1001 vec4 shadow1DProjLod(sampler1DShadow sampler, vec4 coord, float lod);
1002 vec4 shadow2DProjLod(sampler2DShadow sampler, vec4 coord, float lod);
1005 * 8.8 - Fragment Processing Functions (none in vertex shader)
1009 * 8.9 - Noise Functions
1011 float noise1(float x);
1012 float noise1(vec2 x);
1013 float noise1(vec3 x);
1014 float noise1(vec4 x);
1016 vec2 noise2(float x);
1017 vec2 noise2(vec2 x);
1018 vec2 noise2(vec3 x);
1019 vec2 noise2(vec4 x);
1021 vec3 noise3(float x);
1022 vec3 noise3(vec2 x);
1023 vec3 noise3(vec3 x);
1024 vec3 noise3(vec4 x);
1026 vec4 noise4(float x);
1027 vec4 noise4(vec2 x);
1028 vec4 noise4(vec3 x);
1029 vec4 noise4(vec4 x);