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);
151 float fract(float x);
156 float mod(float x, float y);
157 vec2 mod(vec2 x, float y);
158 vec3 mod(vec3 x, float y);
159 vec4 mod(vec4 x, float y);
161 vec2 mod(vec2 x, vec2 y);
162 vec3 mod(vec3 x, vec3 y);
163 vec4 mod(vec4 x, vec4 y);
165 float min(float x, float y);
166 vec2 min(vec2 x, vec2 y);
167 vec3 min(vec3 x, vec3 y);
168 vec4 min(vec4 x, vec4 y);
170 vec2 min(vec2 x, float y);
171 vec3 min(vec3 x, float y);
172 vec4 min(vec4 x, float y);
174 int min(int x, int y);
175 ivec2 min(ivec2 x, ivec2 y);
176 ivec3 min(ivec3 x, ivec3 y);
177 ivec4 min(ivec4 x, ivec4 y);
179 ivec2 min(ivec2 x, int y);
180 ivec3 min(ivec3 x, int y);
181 ivec4 min(ivec4 x, int y);
183 uint min(uint x, uint y);
184 uvec2 min(uvec2 x, uvec2 y);
185 uvec3 min(uvec3 x, uvec3 y);
186 uvec4 min(uvec4 x, uvec4 y);
188 uvec2 min(uvec2 x, uint y);
189 uvec3 min(uvec3 x, uint y);
190 uvec4 min(uvec4 x, uint y);
192 float max(float x, float y);
193 vec2 max(vec2 x, vec2 y);
194 vec3 max(vec3 x, vec3 y);
195 vec4 max(vec4 x, vec4 y);
197 vec2 max(vec2 x, float y);
198 vec3 max(vec3 x, float y);
199 vec4 max(vec4 x, float y);
201 int max(int x, int y);
202 ivec2 max(ivec2 x, ivec2 y);
203 ivec3 max(ivec3 x, ivec3 y);
204 ivec4 max(ivec4 x, ivec4 y);
206 ivec2 max(ivec2 x, int y);
207 ivec3 max(ivec3 x, int y);
208 ivec4 max(ivec4 x, int y);
210 uint max(uint x, uint y);
211 uvec2 max(uvec2 x, uvec2 y);
212 uvec3 max(uvec3 x, uvec3 y);
213 uvec4 max(uvec4 x, uvec4 y);
215 uvec2 max(uvec2 x, uint y);
216 uvec3 max(uvec3 x, uint y);
217 uvec4 max(uvec4 x, uint y);
219 float clamp(float x, float minVal, float maxVal);
220 vec2 clamp(vec2 x, vec2 minVal, vec2 maxVal);
221 vec3 clamp(vec3 x, vec3 minVal, vec3 maxVal);
222 vec4 clamp(vec4 x, vec4 minVal, vec4 maxVal);
224 vec2 clamp(vec2 x, float minVal, float maxVal);
225 vec3 clamp(vec3 x, float minVal, float maxVal);
226 vec4 clamp(vec4 x, float minVal, float maxVal);
228 int clamp(int x, int minVal, int maxVal);
229 ivec2 clamp(ivec2 x, ivec2 minVal, ivec2 maxVal);
230 ivec3 clamp(ivec3 x, ivec3 minVal, ivec3 maxVal);
231 ivec4 clamp(ivec4 x, ivec4 minVal, ivec4 maxVal);
233 ivec2 clamp(ivec2 x, int minVal, int maxVal);
234 ivec3 clamp(ivec3 x, int minVal, int maxVal);
235 ivec4 clamp(ivec4 x, int minVal, int maxVal);
237 uint clamp(uint x, uint minVal, uint maxVal);
238 uvec2 clamp(uvec2 x, uvec2 minVal, uvec2 maxVal);
239 uvec3 clamp(uvec3 x, uvec3 minVal, uvec3 maxVal);
240 uvec4 clamp(uvec4 x, uvec4 minVal, uvec4 maxVal);
242 uvec2 clamp(uvec2 x, uint minVal, uint maxVal);
243 uvec3 clamp(uvec3 x, uint minVal, uint maxVal);
244 uvec4 clamp(uvec4 x, uint minVal, uint maxVal);
246 float mix(float x, float y, float a);
247 vec2 mix(vec2 x, vec2 y, vec2 a);
248 vec3 mix(vec3 x, vec3 y, vec3 a);
249 vec4 mix(vec4 x, vec4 y, vec4 a);
251 vec2 mix(vec2 x, vec2 y, float a);
252 vec3 mix(vec3 x, vec3 y, float a);
253 vec4 mix(vec4 x, vec4 y, float a);
255 float step(float edge, float x);
256 vec2 step(vec2 edge, vec2 x);
257 vec3 step(vec3 edge, vec3 x);
258 vec4 step(vec4 edge, vec4 x);
260 vec2 step(float edge, vec2 x);
261 vec3 step(float edge, vec3 x);
262 vec4 step(float edge, vec4 x);
264 float smoothstep(float edge0, float edge1, float x);
265 vec2 smoothstep(vec2 edge0, vec2 edge1, vec2 x);
266 vec3 smoothstep(vec3 edge0, vec3 edge1, vec3 x);
267 vec4 smoothstep(vec4 edge0, vec4 edge1, vec4 x);
269 vec2 smoothstep(float edge0, float edge1, vec2 x);
270 vec3 smoothstep(float edge0, float edge1, vec3 x);
271 vec4 smoothstep(float edge0, float edge1, vec4 x);
286 * 8.4 - Geometric Functions
288 float length(float x);
289 float length(vec2 x);
290 float length(vec3 x);
291 float length(vec4 x);
293 float distance(float p0, float p1);
294 float distance(vec2 p0, vec2 p1);
295 float distance(vec3 p0, vec3 p1);
296 float distance(vec4 p0, vec4 p1);
298 float dot(float x, float y);
299 float dot(vec2 x, vec2 y);
300 float dot(vec3 x, vec3 y);
301 float dot(vec4 x, vec4 y);
303 vec3 cross(vec3 x, vec3 y);
305 float normalize(float x);
306 vec2 normalize(vec2 x);
307 vec3 normalize(vec3 x);
308 vec4 normalize(vec4 x);
312 float faceforward(float N, float I, float Nref);
313 vec2 faceforward(vec2 N, vec2 I, vec2 Nref);
314 vec3 faceforward(vec3 N, vec3 I, vec3 Nref);
315 vec4 faceforward(vec4 N, vec4 I, vec4 Nref);
317 float reflect(float I, float N);
318 vec2 reflect(vec2 I, vec2 N);
319 vec3 reflect(vec3 I, vec3 N);
320 vec4 reflect(vec4 I, vec4 N);
322 float refract(float I, float N, float eta);
323 vec2 refract(vec2 I, vec2 N, float eta);
324 vec3 refract(vec3 I, vec3 N, float eta);
325 vec4 refract(vec4 I, vec4 N, float eta);
329 * 8.5 - Matrix Functions
331 mat2 matrixCompMult(mat2 x, mat2 y);
332 mat3 matrixCompMult(mat3 x, mat3 y);
333 mat4 matrixCompMult(mat4 x, mat4 y);
334 mat2x3 matrixCompMult(mat2x3 x, mat2x3 y);
335 mat2x4 matrixCompMult(mat2x4 x, mat2x4 y);
336 mat3x2 matrixCompMult(mat3x2 x, mat3x2 y);
337 mat3x4 matrixCompMult(mat3x4 x, mat3x4 y);
338 mat4x2 matrixCompMult(mat4x2 x, mat4x2 y);
339 mat4x3 matrixCompMult(mat4x3 x, mat4x3 y);
341 mat2 outerProduct(vec2 c, vec2 r);
342 mat3 outerProduct(vec3 c, vec3 r);
343 mat4 outerProduct(vec4 c, vec4 r);
345 mat2x3 outerProduct(vec3 c, vec2 r);
346 mat3x2 outerProduct(vec2 c, vec3 r);
348 mat2x4 outerProduct(vec4 c, vec2 r);
349 mat4x2 outerProduct(vec2 c, vec4 r);
351 mat3x4 outerProduct(vec4 c, vec3 r);
352 mat4x3 outerProduct(vec3 c, vec4 r);
354 mat2 transpose(mat2 m);
355 mat3 transpose(mat3 m);
356 mat4 transpose(mat4 m);
358 mat2x3 transpose(mat3x2 m);
359 mat3x2 transpose(mat2x3 m);
361 mat2x4 transpose(mat4x2 m);
362 mat4x2 transpose(mat2x4 m);
364 mat3x4 transpose(mat4x3 m);
365 mat4x3 transpose(mat3x4 m);
368 * 8.6 - Vector Relational Functions
370 bvec2 lessThan( vec2 x, vec2 y);
371 bvec3 lessThan( vec3 x, vec3 y);
372 bvec4 lessThan( vec4 x, vec4 y);
373 bvec2 lessThan(ivec2 x, ivec2 y);
374 bvec3 lessThan(ivec3 x, ivec3 y);
375 bvec4 lessThan(ivec4 x, ivec4 y);
376 bvec2 lessThan(uvec2 x, uvec2 y);
377 bvec3 lessThan(uvec3 x, uvec3 y);
378 bvec4 lessThan(uvec4 x, uvec4 y);
380 bvec2 lessThanEqual( vec2 x, vec2 y);
381 bvec3 lessThanEqual( vec3 x, vec3 y);
382 bvec4 lessThanEqual( vec4 x, vec4 y);
383 bvec2 lessThanEqual(ivec2 x, ivec2 y);
384 bvec3 lessThanEqual(ivec3 x, ivec3 y);
385 bvec4 lessThanEqual(ivec4 x, ivec4 y);
386 bvec2 lessThanEqual(uvec2 x, uvec2 y);
387 bvec3 lessThanEqual(uvec3 x, uvec3 y);
388 bvec4 lessThanEqual(uvec4 x, uvec4 y);
390 bvec2 greaterThan( vec2 x, vec2 y);
391 bvec3 greaterThan( vec3 x, vec3 y);
392 bvec4 greaterThan( vec4 x, vec4 y);
393 bvec2 greaterThan(ivec2 x, ivec2 y);
394 bvec3 greaterThan(ivec3 x, ivec3 y);
395 bvec4 greaterThan(ivec4 x, ivec4 y);
396 bvec2 greaterThan(uvec2 x, uvec2 y);
397 bvec3 greaterThan(uvec3 x, uvec3 y);
398 bvec4 greaterThan(uvec4 x, uvec4 y);
400 bvec2 greaterThanEqual( vec2 x, vec2 y);
401 bvec3 greaterThanEqual( vec3 x, vec3 y);
402 bvec4 greaterThanEqual( vec4 x, vec4 y);
403 bvec2 greaterThanEqual(ivec2 x, ivec2 y);
404 bvec3 greaterThanEqual(ivec3 x, ivec3 y);
405 bvec4 greaterThanEqual(ivec4 x, ivec4 y);
406 bvec2 greaterThanEqual(uvec2 x, uvec2 y);
407 bvec3 greaterThanEqual(uvec3 x, uvec3 y);
408 bvec4 greaterThanEqual(uvec4 x, uvec4 y);
410 bvec2 equal( vec2 x, vec2 y);
411 bvec3 equal( vec3 x, vec3 y);
412 bvec4 equal( vec4 x, vec4 y);
413 bvec2 equal(ivec2 x, ivec2 y);
414 bvec3 equal(ivec3 x, ivec3 y);
415 bvec4 equal(ivec4 x, ivec4 y);
416 bvec2 equal(uvec2 x, uvec2 y);
417 bvec3 equal(uvec3 x, uvec3 y);
418 bvec4 equal(uvec4 x, uvec4 y);
419 bvec2 equal(bvec2 x, bvec2 y);
420 bvec3 equal(bvec3 x, bvec3 y);
421 bvec4 equal(bvec4 x, bvec4 y);
423 bvec2 notEqual( vec2 x, vec2 y);
424 bvec3 notEqual( vec3 x, vec3 y);
425 bvec4 notEqual( vec4 x, vec4 y);
426 bvec2 notEqual(ivec2 x, ivec2 y);
427 bvec3 notEqual(ivec3 x, ivec3 y);
428 bvec4 notEqual(ivec4 x, ivec4 y);
429 bvec2 notEqual(uvec2 x, uvec2 y);
430 bvec3 notEqual(uvec3 x, uvec3 y);
431 bvec4 notEqual(uvec4 x, uvec4 y);
432 bvec2 notEqual(bvec2 x, bvec2 y);
433 bvec3 notEqual(bvec3 x, bvec3 y);
434 bvec4 notEqual(bvec4 x, bvec4 y);
449 * 8.7 - Texture Lookup Functions
454 int textureSize( sampler1D sampler, int lod);
455 int textureSize(isampler1D sampler, int lod);
456 int textureSize(usampler1D sampler, int lod);
458 ivec2 textureSize( sampler2D sampler, int lod);
459 ivec2 textureSize(isampler2D sampler, int lod);
460 ivec2 textureSize(usampler2D sampler, int lod);
462 ivec3 textureSize( sampler3D sampler, int lod);
463 ivec3 textureSize(isampler3D sampler, int lod);
464 ivec3 textureSize(usampler3D sampler, int lod);
466 ivec2 textureSize( samplerCube sampler, int lod);
467 ivec2 textureSize(isamplerCube sampler, int lod);
468 ivec2 textureSize(usamplerCube sampler, int lod);
470 int textureSize(sampler1DShadow sampler, int lod);
471 ivec2 textureSize(sampler2DShadow sampler, int lod);
472 ivec2 textureSize(samplerCubeShadow sampler, int lod);
474 ivec2 textureSize( sampler1DArray sampler, int lod);
475 ivec2 textureSize(isampler1DArray sampler, int lod);
476 ivec2 textureSize(usampler1DArray sampler, int lod);
477 ivec3 textureSize( sampler2DArray sampler, int lod);
478 ivec2 textureSize(isampler2DArray sampler, int lod);
479 ivec2 textureSize(usampler2DArray sampler, int lod);
481 ivec2 textureSize(sampler1DArrayShadow sampler, int lod);
482 ivec3 textureSize(sampler2DArrayShadow sampler, int lod);
485 /* texture - no bias */
486 vec4 texture( sampler1D sampler, float P);
487 ivec4 texture(isampler1D sampler, float P);
488 uvec4 texture(usampler1D sampler, float P);
490 vec4 texture( sampler2D sampler, vec2 P);
491 ivec4 texture(isampler2D sampler, vec2 P);
492 uvec4 texture(usampler2D sampler, vec2 P);
494 vec4 texture( sampler3D sampler, vec3 P);
495 ivec4 texture(isampler3D sampler, vec3 P);
496 uvec4 texture(usampler3D sampler, vec3 P);
498 vec4 texture( samplerCube sampler, vec3 P);
499 ivec4 texture(isamplerCube sampler, vec3 P);
500 uvec4 texture(usamplerCube sampler, vec3 P);
502 float texture(sampler1DShadow sampler, vec3 P);
503 float texture(sampler2DShadow sampler, vec3 P);
504 float texture(samplerCubeShadow sampler, vec4 P);
506 vec4 texture( sampler1DArray sampler, vec2 P);
507 ivec4 texture(isampler1DArray sampler, vec2 P);
508 uvec4 texture(usampler1DArray sampler, vec2 P);
510 vec4 texture( sampler2DArray sampler, vec3 P);
511 ivec4 texture(isampler2DArray sampler, vec3 P);
512 uvec4 texture(usampler2DArray sampler, vec3 P);
514 float texture(sampler1DArrayShadow sampler, vec3 P);
515 float texture(sampler2DArrayShadow sampler, vec4 P);
517 /* texture - bias variants */
518 vec4 texture( sampler1D sampler, float P, float bias);
519 ivec4 texture(isampler1D sampler, float P, float bias);
520 uvec4 texture(usampler1D sampler, float P, float bias);
522 vec4 texture( sampler2D sampler, vec2 P, float bias);
523 ivec4 texture(isampler2D sampler, vec2 P, float bias);
524 uvec4 texture(usampler2D sampler, vec2 P, float bias);
526 vec4 texture( sampler3D sampler, vec3 P, float bias);
527 ivec4 texture(isampler3D sampler, vec3 P, float bias);
528 uvec4 texture(usampler3D sampler, vec3 P, float bias);
530 vec4 texture( samplerCube sampler, vec3 P, float bias);
531 ivec4 texture(isamplerCube sampler, vec3 P, float bias);
532 uvec4 texture(usamplerCube sampler, vec3 P, float bias);
534 float texture(sampler1DShadow sampler, vec3 P, float bias);
535 float texture(sampler2DShadow sampler, vec3 P, float bias);
536 float texture(samplerCubeShadow sampler, vec4 P, float bias);
538 vec4 texture( sampler1DArray sampler, vec2 P, float bias);
539 ivec4 texture(isampler1DArray sampler, vec2 P, float bias);
540 uvec4 texture(usampler1DArray sampler, vec2 P, float bias);
542 vec4 texture( sampler2DArray sampler, vec3 P, float bias);
543 ivec4 texture(isampler2DArray sampler, vec3 P, float bias);
544 uvec4 texture(usampler2DArray sampler, vec3 P, float bias);
546 float texture(sampler1DArrayShadow sampler, vec3 P, float bias);
548 /* textureProj - no bias */
549 vec4 textureProj( sampler1D sampler, vec2 P);
550 ivec4 textureProj(isampler1D sampler, vec2 P);
551 uvec4 textureProj(usampler1D sampler, vec2 P);
552 vec4 textureProj( sampler1D sampler, vec4 P);
553 ivec4 textureProj(isampler1D sampler, vec4 P);
554 uvec4 textureProj(usampler1D sampler, vec4 P);
556 vec4 textureProj( sampler2D sampler, vec3 P);
557 ivec4 textureProj(isampler2D sampler, vec3 P);
558 uvec4 textureProj(usampler2D sampler, vec3 P);
559 vec4 textureProj( sampler2D sampler, vec4 P);
560 ivec4 textureProj(isampler2D sampler, vec4 P);
561 uvec4 textureProj(usampler2D sampler, vec4 P);
563 vec4 textureProj( sampler3D sampler, vec4 P);
564 ivec4 textureProj(isampler3D sampler, vec4 P);
565 uvec4 textureProj(usampler3D sampler, vec4 P);
567 float textureProj(sampler1DShadow sampler, vec4 P);
568 float textureProj(sampler2DShadow sampler, vec4 P);
570 /* textureProj - bias variants */
571 vec4 textureProj( sampler1D sampler, vec2 P, float bias);
572 ivec4 textureProj(isampler1D sampler, vec2 P, float bias);
573 uvec4 textureProj(usampler1D sampler, vec2 P, float bias);
574 vec4 textureProj( sampler1D sampler, vec4 P, float bias);
575 ivec4 textureProj(isampler1D sampler, vec4 P, float bias);
576 uvec4 textureProj(usampler1D sampler, vec4 P, float bias);
578 vec4 textureProj( sampler2D sampler, vec3 P, float bias);
579 ivec4 textureProj(isampler2D sampler, vec3 P, float bias);
580 uvec4 textureProj(usampler2D sampler, vec3 P, float bias);
581 vec4 textureProj( sampler2D sampler, vec4 P, float bias);
582 ivec4 textureProj(isampler2D sampler, vec4 P, float bias);
583 uvec4 textureProj(usampler2D sampler, vec4 P, float bias);
585 vec4 textureProj( sampler3D sampler, vec4 P, float bias);
586 ivec4 textureProj(isampler3D sampler, vec4 P, float bias);
587 uvec4 textureProj(usampler3D sampler, vec4 P, float bias);
589 float textureProj(sampler1DShadow sampler, vec4 P, float bias);
590 float textureProj(sampler2DShadow sampler, vec4 P, float bias);
593 vec4 textureLod( sampler1D sampler, float P, float lod);
594 ivec4 textureLod(isampler1D sampler, float P, float lod);
595 uvec4 textureLod(usampler1D sampler, float P, float lod);
597 vec4 textureLod( sampler2D sampler, vec2 P, float lod);
598 ivec4 textureLod(isampler2D sampler, vec2 P, float lod);
599 uvec4 textureLod(usampler2D sampler, vec2 P, float lod);
601 vec4 textureLod( sampler3D sampler, vec3 P, float lod);
602 ivec4 textureLod(isampler3D sampler, vec3 P, float lod);
603 uvec4 textureLod(usampler3D sampler, vec3 P, float lod);
605 vec4 textureLod( samplerCube sampler, vec3 P, float lod);
606 ivec4 textureLod(isamplerCube sampler, vec3 P, float lod);
607 uvec4 textureLod(usamplerCube sampler, vec3 P, float lod);
609 float textureLod(sampler1DShadow sampler, vec3 P, float lod);
610 float textureLod(sampler2DShadow sampler, vec3 P, float lod);
612 vec4 textureLod( sampler1DArray sampler, vec2 P, float lod);
613 ivec4 textureLod(isampler1DArray sampler, vec2 P, float lod);
614 uvec4 textureLod(usampler1DArray sampler, vec2 P, float lod);
616 vec4 textureLod( sampler2DArray sampler, vec3 P, float lod);
617 ivec4 textureLod(isampler2DArray sampler, vec3 P, float lod);
618 uvec4 textureLod(usampler2DArray sampler, vec3 P, float lod);
620 float textureLod(sampler1DArrayShadow sampler, vec3 P, float lod);
623 /* textureOffset - no bias */
624 vec4 textureOffset( sampler1D sampler, float P, int offset);
625 ivec4 textureOffset(isampler1D sampler, float P, int offset);
626 uvec4 textureOffset(usampler1D sampler, float P, int offset);
628 vec4 textureOffset( sampler2D sampler, vec2 P, ivec2 offset);
629 ivec4 textureOffset(isampler2D sampler, vec2 P, ivec2 offset);
630 uvec4 textureOffset(usampler2D sampler, vec2 P, ivec2 offset);
632 vec4 textureOffset( sampler3D sampler, vec3 P, ivec3 offset);
633 ivec4 textureOffset(isampler3D sampler, vec3 P, ivec3 offset);
634 uvec4 textureOffset(usampler3D sampler, vec3 P, ivec3 offset);
636 float textureOffset(sampler1DShadow sampler, vec3 P, int offset);
637 float textureOffset(sampler2DShadow sampler, vec3 P, ivec2 offset);
639 vec4 textureOffset( sampler1DArray sampler, vec2 P, int offset);
640 ivec4 textureOffset(isampler1DArray sampler, vec2 P, int offset);
641 uvec4 textureOffset(usampler1DArray sampler, vec2 P, int offset);
643 vec4 textureOffset( sampler2DArray sampler, vec3 P, ivec2 offset);
644 ivec4 textureOffset(isampler2DArray sampler, vec3 P, ivec2 offset);
645 uvec4 textureOffset(usampler2DArray sampler, vec3 P, ivec2 offset);
647 float textureOffset(sampler1DArrayShadow sampler, vec3 P, int offset);
649 /* textureOffset - bias variants */
650 vec4 textureOffset( sampler1D sampler, float P, int offset, float bias);
651 ivec4 textureOffset(isampler1D sampler, float P, int offset, float bias);
652 uvec4 textureOffset(usampler1D sampler, float P, int offset, float bias);
654 vec4 textureOffset( sampler2D sampler, vec2 P, ivec2 offset, float bias);
655 ivec4 textureOffset(isampler2D sampler, vec2 P, ivec2 offset, float bias);
656 uvec4 textureOffset(usampler2D sampler, vec2 P, ivec2 offset, float bias);
658 vec4 textureOffset( sampler3D sampler, vec3 P, ivec3 offset, float bias);
659 ivec4 textureOffset(isampler3D sampler, vec3 P, ivec3 offset, float bias);
660 uvec4 textureOffset(usampler3D sampler, vec3 P, ivec3 offset, float bias);
662 float textureOffset(sampler1DShadow sampler, vec3 P, int offset, float bias);
663 float textureOffset(sampler2DShadow sampler, vec3 P, ivec2 offset, float bias);
665 vec4 textureOffset( sampler1DArray sampler, vec2 P, int offset, float bias);
666 ivec4 textureOffset(isampler1DArray sampler, vec2 P, int offset, float bias);
667 uvec4 textureOffset(usampler1DArray sampler, vec2 P, int offset, float bias);
669 vec4 textureOffset( sampler2DArray sampler, vec3 P, ivec2 offset, float bias);
670 ivec4 textureOffset(isampler2DArray sampler, vec3 P, ivec2 offset, float bias);
671 uvec4 textureOffset(usampler2DArray sampler, vec3 P, ivec2 offset, float bias);
673 float textureOffset(sampler1DArrayShadow samp, vec3 P, int offset, float bias);
677 vec4 texelFetch( sampler1D sampler, int P, int lod);
678 ivec4 texelFetch(isampler1D sampler, int P, int lod);
679 uvec4 texelFetch(usampler1D sampler, int P, int lod);
681 vec4 texelFetch( sampler2D sampler, ivec2 P, int lod);
682 ivec4 texelFetch(isampler2D sampler, ivec2 P, int lod);
683 uvec4 texelFetch(usampler2D sampler, ivec2 P, int lod);
685 vec4 texelFetch( sampler3D sampler, ivec3 P, int lod);
686 ivec4 texelFetch(isampler3D sampler, ivec3 P, int lod);
687 uvec4 texelFetch(usampler3D sampler, ivec3 P, int lod);
689 vec4 texelFetch( sampler1DArray sampler, ivec2 P, int lod);
690 ivec4 texelFetch(isampler1DArray sampler, ivec2 P, int lod);
691 uvec4 texelFetch(usampler1DArray sampler, ivec2 P, int lod);
693 vec4 texelFetch( sampler2DArray sampler, ivec3 P, int lod);
694 ivec4 texelFetch(isampler2DArray sampler, ivec3 P, int lod);
695 uvec4 texelFetch(usampler2DArray sampler, ivec3 P, int lod);
698 /* texelFetchOffset */
699 vec4 texelFetchOffset( sampler1D sampler, int P, int lod, int offset);
700 ivec4 texelFetchOffset(isampler1D sampler, int P, int lod, int offset);
701 uvec4 texelFetchOffset(usampler1D sampler, int P, int lod, int offset);
703 vec4 texelFetchOffset( sampler2D sampler, ivec2 P, int lod, ivec2 offset);
704 ivec4 texelFetchOffset(isampler2D sampler, ivec2 P, int lod, ivec2 offset);
705 uvec4 texelFetchOffset(usampler2D sampler, ivec2 P, int lod, ivec2 offset);
707 vec4 texelFetchOffset( sampler3D sampler, ivec3 P, int lod, ivec3 offset);
708 ivec4 texelFetchOffset(isampler3D sampler, ivec3 P, int lod, ivec3 offset);
709 uvec4 texelFetchOffset(usampler3D sampler, ivec3 P, int lod, ivec3 offset);
711 vec4 texelFetchOffset( sampler1DArray sampler, ivec2 P, int lod, int offset);
712 ivec4 texelFetchOffset(isampler1DArray sampler, ivec2 P, int lod, int offset);
713 uvec4 texelFetchOffset(usampler1DArray sampler, ivec2 P, int lod, int offset);
715 vec4 texelFetchOffset( sampler2DArray sampler, ivec3 P, int lod, ivec2 offset);
716 ivec4 texelFetchOffset(isampler2DArray sampler, ivec3 P, int lod, ivec2 offset);
717 uvec4 texelFetchOffset(usampler2DArray sampler, ivec3 P, int lod, ivec2 offset);
719 /* textureProjOffset - no bias */
720 vec4 textureProj( sampler1D sampler, vec2 P, int offset);
721 ivec4 textureProj(isampler1D sampler, vec2 P, int offset);
722 uvec4 textureProj(usampler1D sampler, vec2 P, int offset);
723 vec4 textureProj( sampler1D sampler, vec4 P, int offset);
724 ivec4 textureProj(isampler1D sampler, vec4 P, int offset);
725 uvec4 textureProj(usampler1D sampler, vec4 P, int offset);
727 vec4 textureProj( sampler2D sampler, vec3 P, ivec2 offset);
728 ivec4 textureProj(isampler2D sampler, vec3 P, ivec2 offset);
729 uvec4 textureProj(usampler2D sampler, vec3 P, ivec2 offset);
730 vec4 textureProj( sampler2D sampler, vec4 P, ivec2 offset);
731 ivec4 textureProj(isampler2D sampler, vec4 P, ivec2 offset);
732 uvec4 textureProj(usampler2D sampler, vec4 P, ivec2 offset);
734 vec4 textureProj( sampler3D sampler, vec4 P, ivec3 offset);
735 ivec4 textureProj(isampler3D sampler, vec4 P, ivec3 offset);
736 uvec4 textureProj(usampler3D sampler, vec4 P, ivec3 offset);
738 float textureProj(sampler1DShadow sampler, vec4 P, int offset);
739 float textureProj(sampler2DShadow sampler, vec4 P, ivec2 offset);
741 /* textureProjOffset - bias variants */
742 vec4 textureProj( sampler1D sampler, vec2 P, int offset, float bias);
743 ivec4 textureProj(isampler1D sampler, vec2 P, int offset, float bias);
744 uvec4 textureProj(usampler1D sampler, vec2 P, int offset, float bias);
745 vec4 textureProj( sampler1D sampler, vec4 P, int offset, float bias);
746 ivec4 textureProj(isampler1D sampler, vec4 P, int offset, float bias);
747 uvec4 textureProj(usampler1D sampler, vec4 P, int offset, float bias);
749 vec4 textureProj( sampler2D sampler, vec3 P, ivec2 offset, float bias);
750 ivec4 textureProj(isampler2D sampler, vec3 P, ivec2 offset, float bias);
751 uvec4 textureProj(usampler2D sampler, vec3 P, ivec2 offset, float bias);
752 vec4 textureProj( sampler2D sampler, vec4 P, ivec2 offset, float bias);
753 ivec4 textureProj(isampler2D sampler, vec4 P, ivec2 offset, float bias);
754 uvec4 textureProj(usampler2D sampler, vec4 P, ivec2 offset, float bias);
756 vec4 textureProj( sampler3D sampler, vec4 P, ivec3 offset, float bias);
757 ivec4 textureProj(isampler3D sampler, vec4 P, ivec3 offset, float bias);
758 uvec4 textureProj(usampler3D sampler, vec4 P, ivec3 offset, float bias);
760 float textureProj(sampler1DShadow sampler, vec4 P, int offset, float bias);
761 float textureProj(sampler2DShadow sampler, vec4 P, ivec2 offset, float bias);
763 /* textureLodOffset */
764 vec4 textureLodOffset( sampler1D sampler, float P, float lod, int offset);
765 ivec4 textureLodOffset(isampler1D sampler, float P, float lod, int offset);
766 uvec4 textureLodOffset(usampler1D sampler, float P, float lod, int offset);
768 vec4 textureLodOffset( sampler2D sampler, vec2 P, float lod, ivec2 offset);
769 ivec4 textureLodOffset(isampler2D sampler, vec2 P, float lod, ivec2 offset);
770 uvec4 textureLodOffset(usampler2D sampler, vec2 P, float lod, ivec2 offset);
772 vec4 textureLodOffset( sampler3D sampler, vec3 P, float lod, ivec3 offset);
773 ivec4 textureLodOffset(isampler3D sampler, vec3 P, float lod, ivec3 offset);
774 uvec4 textureLodOffset(usampler3D sampler, vec3 P, float lod, ivec3 offset);
776 float textureLodOffset(sampler1DShadow samp, vec3 P, float lod, int offset);
777 float textureLodOffset(sampler2DShadow samp, vec3 P, float lod, ivec2 offset);
779 vec4 textureLodOffset( sampler1DArray sampler, vec2 P, float lod, int offset);
780 ivec4 textureLodOffset(isampler1DArray sampler, vec2 P, float lod, int offset);
781 uvec4 textureLodOffset(usampler1DArray sampler, vec2 P, float lod, int offset);
783 vec4 textureLodOffset( sampler2DArray samp, vec3 P, float lod, ivec2 offset);
784 ivec4 textureLodOffset(isampler2DArray samp, vec3 P, float lod, ivec2 offset);
785 uvec4 textureLodOffset(usampler2DArray samp, vec3 P, float lod, ivec2 offset);
787 float textureLodOffset(sampler1DArrayShadow s, vec3 P, float lod, int offset);
791 vec4 textureProjLod( sampler1D sampler, vec2 P, float lod);
792 ivec4 textureProjLod(isampler1D sampler, vec2 P, float lod);
793 uvec4 textureProjLod(usampler1D sampler, vec2 P, float lod);
794 vec4 textureProjLod( sampler1D sampler, vec4 P, float lod);
795 ivec4 textureProjLod(isampler1D sampler, vec4 P, float lod);
796 uvec4 textureProjLod(usampler1D sampler, vec4 P, float lod);
798 vec4 textureProjLod( sampler2D sampler, vec3 P, float lod);
799 ivec4 textureProjLod(isampler2D sampler, vec3 P, float lod);
800 uvec4 textureProjLod(usampler2D sampler, vec3 P, float lod);
801 vec4 textureProjLod( sampler2D sampler, vec4 P, float lod);
802 ivec4 textureProjLod(isampler2D sampler, vec4 P, float lod);
803 uvec4 textureProjLod(usampler2D sampler, vec4 P, float lod);
805 vec4 textureProjLod( sampler3D sampler, vec4 P, float lod);
806 ivec4 textureProjLod(isampler3D sampler, vec4 P, float lod);
807 uvec4 textureProjLod(usampler3D sampler, vec4 P, float lod);
809 float textureProjLod(sampler1DShadow sampler, vec4 P, float lod);
810 float textureProjLod(sampler2DShadow sampler, vec4 P, float lod);
813 /* textureProjLodOffset */
814 vec4 textureProjLodOffset( sampler1D sampler, vec2 P, float lod, int offset);
815 ivec4 textureProjLodOffset(isampler1D sampler, vec2 P, float lod, int offset);
816 uvec4 textureProjLodOffset(usampler1D sampler, vec2 P, float lod, int offset);
817 vec4 textureProjLodOffset( sampler1D sampler, vec4 P, float lod, int offset);
818 ivec4 textureProjLodOffset(isampler1D sampler, vec4 P, float lod, int offset);
819 uvec4 textureProjLodOffset(usampler1D sampler, vec4 P, float lod, int offset);
821 vec4 textureProjLodOffset( sampler2D sampler, vec3 P, float lod, ivec2 offset);
822 ivec4 textureProjLodOffset(isampler2D sampler, vec3 P, float lod, ivec2 offset);
823 uvec4 textureProjLodOffset(usampler2D sampler, vec3 P, float lod, ivec2 offset);
824 vec4 textureProjLodOffset( sampler2D sampler, vec4 P, float lod, ivec2 offset);
825 ivec4 textureProjLodOffset(isampler2D sampler, vec4 P, float lod, ivec2 offset);
826 uvec4 textureProjLodOffset(usampler2D sampler, vec4 P, float lod, ivec2 offset);
828 vec4 textureProjLodOffset( sampler3D sampler, vec4 P, float lod, ivec3 offset);
829 ivec4 textureProjLodOffset(isampler3D sampler, vec4 P, float lod, ivec3 offset);
830 uvec4 textureProjLodOffset(usampler3D sampler, vec4 P, float lod, ivec3 offset);
832 float textureProjLodOffset(sampler1DShadow s, vec4 P, float lod, int offset);
833 float textureProjLodOffset(sampler2DShadow s, vec4 P, float lod, ivec2 offset);
837 vec4 textureGrad( sampler1D sampler, float P, float dPdx, float dPdy);
838 ivec4 textureGrad(isampler1D sampler, float P, float dPdx, float dPdy);
839 uvec4 textureGrad(usampler1D sampler, float P, float dPdx, float dPdy);
841 vec4 textureGrad( sampler2D sampler, vec2 P, vec2 dPdx, vec2 dPdy);
842 ivec4 textureGrad(isampler2D sampler, vec2 P, vec2 dPdx, vec2 dPdy);
843 uvec4 textureGrad(usampler2D sampler, vec2 P, vec2 dPdx, vec2 dPdy);
845 vec4 textureGrad( sampler3D sampler, vec3 P, vec3 dPdx, vec3 dPdy);
846 ivec4 textureGrad(isampler3D sampler, vec3 P, vec3 dPdx, vec3 dPdy);
847 uvec4 textureGrad(usampler3D sampler, vec3 P, vec3 dPdx, vec3 dPdy);
849 vec4 textureGrad( samplerCube sampler, vec3 P, vec3 dPdx, vec3 dPdy);
850 ivec4 textureGrad(isamplerCube sampler, vec3 P, vec3 dPdx, vec3 dPdy);
851 uvec4 textureGrad(usamplerCube sampler, vec3 P, vec3 dPdx, vec3 dPdy);
853 float textureGrad(sampler1DShadow sampler, vec3 P, float dPdx, float dPdy);
854 float textureGrad(sampler2DShadow sampler, vec3 P, vec2 dPdx, vec2 dPdy);
855 float textureGrad(samplerCubeShadow sampler, vec4 P, vec3 dPdx, vec3 dPdy);
857 vec4 textureGrad( sampler1DArray sampler, vec2 P, float dPdx, float dPdy);
858 ivec4 textureGrad(isampler1DArray sampler, vec2 P, float dPdx, float dPdy);
859 uvec4 textureGrad(usampler1DArray sampler, vec2 P, float dPdx, float dPdy);
861 vec4 textureGrad( sampler2DArray sampler, vec3 P, vec2 dPdx, vec2 dPdy);
862 ivec4 textureGrad(isampler2DArray sampler, vec3 P, vec2 dPdx, vec2 dPdy);
863 uvec4 textureGrad(usampler2DArray sampler, vec3 P, vec2 dPdx, vec2 dPdy);
865 float textureGrad(sampler1DArrayShadow sampler, vec3 P, float dPdx, float dPdy);
866 float textureGrad(sampler2DArrayShadow sampler, vec4 P, vec2 dPdx, vec2 dPdy);
869 /* textureGradOffset */
870 vec4 textureGradOffset( sampler1D s, float P, float dx, float dy, int off);
871 ivec4 textureGradOffset(isampler1D s, float P, float dx, float dy, int offset);
872 uvec4 textureGradOffset(usampler1D s, float P, float dx, float dy, int offset);
874 vec4 textureGradOffset( sampler2D s, vec2 P, vec2 dx, vec2 dy, ivec2 offset);
875 ivec4 textureGradOffset(isampler2D s, vec2 P, vec2 dx, vec2 dy, ivec2 offset);
876 uvec4 textureGradOffset(usampler2D s, vec2 P, vec2 dx, vec2 dy, ivec2 offset);
878 vec4 textureGradOffset( sampler3D s, vec3 P, vec3 dx, vec3 dy, ivec3 offset);
879 ivec4 textureGradOffset(isampler3D s, vec3 P, vec3 dx, vec3 dy, ivec3 offset);
880 uvec4 textureGradOffset(usampler3D s, vec3 P, vec3 dx, vec3 dy, ivec3 offset);
882 vec4 textureGradOffset( samplerCube s, vec3 P, vec3 dx, vec3 dy, ivec3 offset);
883 ivec4 textureGradOffset(isamplerCube s, vec3 P, vec3 dx, vec3 dy, ivec3 offset);
884 uvec4 textureGradOffset(usamplerCube s, vec3 P, vec3 dx, vec3 dy, ivec3 offset);
886 float textureGradOffset(sampler1DShadow s, vec3 P, float dx, float dy, int off);
887 float textureGradOffset(sampler2DShadow s, vec3 P, vec2 dx, vec2 dy, ivec2 off);
889 vec4 textureGradOffset( sampler1DArray s, vec2 P, float dx, float dy, int off);
890 ivec4 textureGradOffset(isampler1DArray s, vec2 P, float dx, float dy, int off);
891 uvec4 textureGradOffset(usampler1DArray s, vec2 P, float dx, float dy, int off);
893 vec4 textureGradOffset( sampler2DArray s, vec3 P, vec2 dx, vec2 dy, ivec2 off);
894 ivec4 textureGradOffset(isampler2DArray s, vec3 P, vec2 dx, vec2 dy, ivec2 off);
895 uvec4 textureGradOffset(usampler2DArray s, vec3 P, vec2 dx, vec2 dy, ivec2 off);
897 float textureGradOffset(sampler1DArrayShadow s, vec3 P, float dx, float dy, int o);
898 float textureGradOffset(sampler2DArrayShadow s, vec4 P, vec2 dx, vec2 dy, ivec2 o);
901 /* textureProjGrad */
902 vec4 textureProjGrad( sampler1D sampler, vec2 P, float dPdx, float dPdy);
903 ivec4 textureProjGrad(isampler1D sampler, vec2 P, float dPdx, float dPdy);
904 uvec4 textureProjGrad(usampler1D sampler, vec2 P, float dPdx, float dPdy);
905 vec4 textureProjGrad( sampler1D sampler, vec4 P, float dPdx, float dPdy);
906 ivec4 textureProjGrad(isampler1D sampler, vec4 P, float dPdx, float dPdy);
907 uvec4 textureProjGrad(usampler1D sampler, vec4 P, float dPdx, float dPdy);
909 vec4 textureProjGrad( sampler2D sampler, vec3 P, vec2 dPdx, vec2 dPdy);
910 ivec4 textureProjGrad(isampler2D sampler, vec3 P, vec2 dPdx, vec2 dPdy);
911 uvec4 textureProjGrad(usampler2D sampler, vec3 P, vec2 dPdx, vec2 dPdy);
912 vec4 textureProjGrad( sampler2D sampler, vec4 P, vec2 dPdx, vec2 dPdy);
913 ivec4 textureProjGrad(isampler2D sampler, vec4 P, vec2 dPdx, vec2 dPdy);
914 uvec4 textureProjGrad(usampler2D sampler, vec4 P, vec2 dPdx, vec2 dPdy);
916 vec4 textureProjGrad( sampler3D sampler, vec4 P, vec3 dPdx, vec3 dPdy);
917 ivec4 textureProjGrad(isampler3D sampler, vec4 P, vec3 dPdx, vec3 dPdy);
918 uvec4 textureProjGrad(usampler3D sampler, vec4 P, vec3 dPdx, vec3 dPdy);
920 float textureProjGrad(sampler1DShadow sampler, vec4 P, float dPdx, float dPdy);
921 float textureProjGrad(sampler2DShadow sampler, vec4 P, vec2 dPdx, vec2 dPdy);
924 /* textureProjGradOffset */
925 vec4 textureProjGradOffset( sampler1D s, vec2 P, float dx, float dy, int off);
926 ivec4 textureProjGradOffset(isampler1D s, vec2 P, float dx, float dy, int off);
927 uvec4 textureProjGradOffset(usampler1D s, vec2 P, float dx, float dy, int off);
928 vec4 textureProjGradOffset( sampler1D s, vec4 P, float dx, float dy, int off);
929 ivec4 textureProjGradOffset(isampler1D s, vec4 P, float dx, float dy, int off);
930 uvec4 textureProjGradOffset(usampler1D s, vec4 P, float dx, float dy, int off);
932 vec4 textureProjGradOffset( sampler2D s, vec3 P, vec2 dx, vec2 dy, ivec2 off);
933 ivec4 textureProjGradOffset(isampler2D s, vec3 P, vec2 dx, vec2 dy, ivec2 off);
934 uvec4 textureProjGradOffset(usampler2D s, vec3 P, vec2 dx, vec2 dy, ivec2 off);
935 vec4 textureProjGradOffset( sampler2D s, vec4 P, vec2 dx, vec2 dy, ivec2 off);
936 ivec4 textureProjGradOffset(isampler2D s, vec4 P, vec2 dx, vec2 dy, ivec2 off);
937 uvec4 textureProjGradOffset(usampler2D s, vec4 P, vec2 dx, vec2 dy, ivec2 off);
939 vec4 textureProjGradOffset( sampler3D s, vec4 P, vec3 dx, vec3 dy, ivec3 off);
940 ivec4 textureProjGradOffset(isampler3D s, vec4 P, vec3 dx, vec3 dy, ivec3 off);
941 uvec4 textureProjGradOffset(usampler3D s, vec4 P, vec3 dx, vec3 dy, ivec3 off);
943 float textureProjGradOffset(sampler1DShadow s, vec4 P, float dx, float dy, int o);
944 float textureProjGradOffset(sampler2DShadow s, vec4 P, vec2 dx, vec2 dy, vec2 o);
948 * The following texture functions are deprecated:
950 vec4 texture1D (sampler1D sampler, float coord);
951 vec4 texture1DProj (sampler1D sampler, vec2 coord);
952 vec4 texture1DProj (sampler1D sampler, vec4 coord);
953 vec4 texture1D (sampler1D sampler, float coord, float bias);
954 vec4 texture1DProj (sampler1D sampler, vec2 coord, float bias);
955 vec4 texture1DProj (sampler1D sampler, vec4 coord, float bias);
956 vec4 texture1DLod (sampler1D sampler, float coord, float lod);
957 vec4 texture1DProjLod(sampler1D sampler, vec2 coord, float lod);
958 vec4 texture1DProjLod(sampler1D sampler, vec4 coord, float lod);
960 vec4 texture2D (sampler2D sampler, vec2 coord);
961 vec4 texture2DProj (sampler2D sampler, vec3 coord);
962 vec4 texture2DProj (sampler2D sampler, vec4 coord);
963 vec4 texture2D (sampler2D sampler, vec2 coord, float bias);
964 vec4 texture2DProj (sampler2D sampler, vec3 coord, float bias);
965 vec4 texture2DProj (sampler2D sampler, vec4 coord, float bias);
966 vec4 texture2DLod (sampler2D sampler, vec2 coord, float lod);
967 vec4 texture2DProjLod(sampler2D sampler, vec3 coord, float lod);
968 vec4 texture2DProjLod(sampler2D sampler, vec4 coord, float lod);
970 vec4 texture3D (sampler3D sampler, vec3 coord);
971 vec4 texture3DProj (sampler3D sampler, vec4 coord);
972 vec4 texture3D (sampler3D sampler, vec3 coord, float bias);
973 vec4 texture3DProj (sampler3D sampler, vec4 coord, float bias);
974 vec4 texture3DLod (sampler3D sampler, vec3 coord, float lod);
975 vec4 texture3DProjLod(sampler3D sampler, vec4 coord, float lod);
977 vec4 textureCube (samplerCube sampler, vec3 coord);
978 vec4 textureCube (samplerCube sampler, vec3 coord, float bias);
979 vec4 textureCubeLod (samplerCube sampler, vec3 coord, float lod);
981 vec4 shadow1D (sampler1DShadow sampler, vec3 coord);
982 vec4 shadow2D (sampler2DShadow sampler, vec3 coord);
983 vec4 shadow1DProj (sampler1DShadow sampler, vec4 coord);
984 vec4 shadow2DProj (sampler2DShadow sampler, vec4 coord);
985 vec4 shadow1D (sampler1DShadow sampler, vec3 coord, float bias);
986 vec4 shadow2D (sampler2DShadow sampler, vec3 coord, float bias);
987 vec4 shadow1DProj (sampler1DShadow sampler, vec4 coord, float bias);
988 vec4 shadow2DProj (sampler2DShadow sampler, vec4 coord, float bias);
989 vec4 shadow1DLod (sampler1DShadow sampler, vec3 coord, float lod);
990 vec4 shadow2DLod (sampler2DShadow sampler, vec3 coord, float lod);
991 vec4 shadow1DProjLod(sampler1DShadow sampler, vec4 coord, float lod);
992 vec4 shadow2DProjLod(sampler2DShadow sampler, vec4 coord, float lod);
995 * 8.8 - Fragment Processing Functions (none in vertex shader)
999 * 8.9 - Noise Functions
1001 float noise1(float x);
1002 float noise1(vec2 x);
1003 float noise1(vec3 x);
1004 float noise1(vec4 x);
1006 vec2 noise2(float x);
1007 vec2 noise2(vec2 x);
1008 vec2 noise2(vec3 x);
1009 vec2 noise2(vec4 x);
1011 vec3 noise3(float x);
1012 vec3 noise3(vec2 x);
1013 vec3 noise3(vec3 x);
1014 vec3 noise3(vec4 x);
1016 vec4 noise4(float x);
1017 vec4 noise4(vec2 x);
1018 vec4 noise4(vec3 x);
1019 vec4 noise4(vec4 x);