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