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 328float faceforward(float N, float I, float Nref); 329vec2 faceforward(vec2 N, vec2 I, vec2 Nref); 330vec3 faceforward(vec3 N, vec3 I, vec3 Nref); 331vec4 faceforward(vec4 N, vec4 I, vec4 Nref); 332 333float reflect(float I, float N); 334vec2 reflect(vec2 I, vec2 N); 335vec3 reflect(vec3 I, vec3 N); 336vec4 reflect(vec4 I, vec4 N); 337 338float refract(float I, float N, float eta); 339vec2 refract(vec2 I, vec2 N, float eta); 340vec3 refract(vec3 I, vec3 N, float eta); 341vec4 refract(vec4 I, vec4 N, float eta); 342 343 344/* 345 * 8.5 - Matrix Functions 346 */ 347mat2 matrixCompMult(mat2 x, mat2 y); 348mat3 matrixCompMult(mat3 x, mat3 y); 349mat4 matrixCompMult(mat4 x, mat4 y); 350mat2x3 matrixCompMult(mat2x3 x, mat2x3 y); 351mat2x4 matrixCompMult(mat2x4 x, mat2x4 y); 352mat3x2 matrixCompMult(mat3x2 x, mat3x2 y); 353mat3x4 matrixCompMult(mat3x4 x, mat3x4 y); 354mat4x2 matrixCompMult(mat4x2 x, mat4x2 y); 355mat4x3 matrixCompMult(mat4x3 x, mat4x3 y); 356 357mat2 outerProduct(vec2 c, vec2 r); 358mat3 outerProduct(vec3 c, vec3 r); 359mat4 outerProduct(vec4 c, vec4 r); 360 361mat2x3 outerProduct(vec3 c, vec2 r); 362mat3x2 outerProduct(vec2 c, vec3 r); 363 364mat2x4 outerProduct(vec4 c, vec2 r); 365mat4x2 outerProduct(vec2 c, vec4 r); 366 367mat3x4 outerProduct(vec4 c, vec3 r); 368mat4x3 outerProduct(vec3 c, vec4 r); 369 370mat2 transpose(mat2 m); 371mat3 transpose(mat3 m); 372mat4 transpose(mat4 m); 373 374mat2x3 transpose(mat3x2 m); 375mat3x2 transpose(mat2x3 m); 376 377mat2x4 transpose(mat4x2 m); 378mat4x2 transpose(mat2x4 m); 379 380mat3x4 transpose(mat4x3 m); 381mat4x3 transpose(mat3x4 m); 382 383/* 384 * 8.6 - Vector Relational Functions 385 */ 386bvec2 lessThan( vec2 x, vec2 y); 387bvec3 lessThan( vec3 x, vec3 y); 388bvec4 lessThan( vec4 x, vec4 y); 389bvec2 lessThan(ivec2 x, ivec2 y); 390bvec3 lessThan(ivec3 x, ivec3 y); 391bvec4 lessThan(ivec4 x, ivec4 y); 392bvec2 lessThan(uvec2 x, uvec2 y); 393bvec3 lessThan(uvec3 x, uvec3 y); 394bvec4 lessThan(uvec4 x, uvec4 y); 395 396bvec2 lessThanEqual( vec2 x, vec2 y); 397bvec3 lessThanEqual( vec3 x, vec3 y); 398bvec4 lessThanEqual( vec4 x, vec4 y); 399bvec2 lessThanEqual(ivec2 x, ivec2 y); 400bvec3 lessThanEqual(ivec3 x, ivec3 y); 401bvec4 lessThanEqual(ivec4 x, ivec4 y); 402bvec2 lessThanEqual(uvec2 x, uvec2 y); 403bvec3 lessThanEqual(uvec3 x, uvec3 y); 404bvec4 lessThanEqual(uvec4 x, uvec4 y); 405 406bvec2 greaterThan( vec2 x, vec2 y); 407bvec3 greaterThan( vec3 x, vec3 y); 408bvec4 greaterThan( vec4 x, vec4 y); 409bvec2 greaterThan(ivec2 x, ivec2 y); 410bvec3 greaterThan(ivec3 x, ivec3 y); 411bvec4 greaterThan(ivec4 x, ivec4 y); 412bvec2 greaterThan(uvec2 x, uvec2 y); 413bvec3 greaterThan(uvec3 x, uvec3 y); 414bvec4 greaterThan(uvec4 x, uvec4 y); 415 416bvec2 greaterThanEqual( vec2 x, vec2 y); 417bvec3 greaterThanEqual( vec3 x, vec3 y); 418bvec4 greaterThanEqual( vec4 x, vec4 y); 419bvec2 greaterThanEqual(ivec2 x, ivec2 y); 420bvec3 greaterThanEqual(ivec3 x, ivec3 y); 421bvec4 greaterThanEqual(ivec4 x, ivec4 y); 422bvec2 greaterThanEqual(uvec2 x, uvec2 y); 423bvec3 greaterThanEqual(uvec3 x, uvec3 y); 424bvec4 greaterThanEqual(uvec4 x, uvec4 y); 425 426bvec2 equal( vec2 x, vec2 y); 427bvec3 equal( vec3 x, vec3 y); 428bvec4 equal( vec4 x, vec4 y); 429bvec2 equal(ivec2 x, ivec2 y); 430bvec3 equal(ivec3 x, ivec3 y); 431bvec4 equal(ivec4 x, ivec4 y); 432bvec2 equal(uvec2 x, uvec2 y); 433bvec3 equal(uvec3 x, uvec3 y); 434bvec4 equal(uvec4 x, uvec4 y); 435bvec2 equal(bvec2 x, bvec2 y); 436bvec3 equal(bvec3 x, bvec3 y); 437bvec4 equal(bvec4 x, bvec4 y); 438 439bvec2 notEqual( vec2 x, vec2 y); 440bvec3 notEqual( vec3 x, vec3 y); 441bvec4 notEqual( vec4 x, vec4 y); 442bvec2 notEqual(ivec2 x, ivec2 y); 443bvec3 notEqual(ivec3 x, ivec3 y); 444bvec4 notEqual(ivec4 x, ivec4 y); 445bvec2 notEqual(uvec2 x, uvec2 y); 446bvec3 notEqual(uvec3 x, uvec3 y); 447bvec4 notEqual(uvec4 x, uvec4 y); 448bvec2 notEqual(bvec2 x, bvec2 y); 449bvec3 notEqual(bvec3 x, bvec3 y); 450bvec4 notEqual(bvec4 x, bvec4 y); 451 452bool any(bvec2 x); 453bool any(bvec3 x); 454bool any(bvec4 x); 455 456bool all(bvec2 x); 457bool all(bvec3 x); 458bool all(bvec4 x); 459 460bvec2 not(bvec2 x); 461bvec3 not(bvec3 x); 462bvec4 not(bvec4 x); 463 464/* 465 * 8.7 - Texture Lookup Functions 466 */ 467 468#if 0 469/* textureSize */ 470int textureSize( sampler1D sampler, int lod); 471int textureSize(isampler1D sampler, int lod); 472int textureSize(usampler1D sampler, int lod); 473 474ivec2 textureSize( sampler2D sampler, int lod); 475ivec2 textureSize(isampler2D sampler, int lod); 476ivec2 textureSize(usampler2D sampler, int lod); 477 478ivec3 textureSize( sampler3D sampler, int lod); 479ivec3 textureSize(isampler3D sampler, int lod); 480ivec3 textureSize(usampler3D sampler, int lod); 481 482ivec2 textureSize( samplerCube sampler, int lod); 483ivec2 textureSize(isamplerCube sampler, int lod); 484ivec2 textureSize(usamplerCube sampler, int lod); 485 486int textureSize(sampler1DShadow sampler, int lod); 487ivec2 textureSize(sampler2DShadow sampler, int lod); 488ivec2 textureSize(samplerCubeShadow sampler, int lod); 489 490ivec2 textureSize( sampler1DArray sampler, int lod); 491ivec2 textureSize(isampler1DArray sampler, int lod); 492ivec2 textureSize(usampler1DArray sampler, int lod); 493ivec3 textureSize( sampler2DArray sampler, int lod); 494ivec2 textureSize(isampler2DArray sampler, int lod); 495ivec2 textureSize(usampler2DArray sampler, int lod); 496 497ivec2 textureSize(sampler1DArrayShadow sampler, int lod); 498ivec3 textureSize(sampler2DArrayShadow sampler, int lod); 499#endif 500 501/* texture - no bias */ 502 vec4 texture( sampler1D sampler, float P); 503ivec4 texture(isampler1D sampler, float P); 504uvec4 texture(usampler1D sampler, float P); 505 506 vec4 texture( sampler2D sampler, vec2 P); 507ivec4 texture(isampler2D sampler, vec2 P); 508uvec4 texture(usampler2D sampler, vec2 P); 509 510 vec4 texture( sampler3D sampler, vec3 P); 511ivec4 texture(isampler3D sampler, vec3 P); 512uvec4 texture(usampler3D sampler, vec3 P); 513 514 vec4 texture( samplerCube sampler, vec3 P); 515ivec4 texture(isamplerCube sampler, vec3 P); 516uvec4 texture(usamplerCube sampler, vec3 P); 517 518float texture(sampler1DShadow sampler, vec3 P); 519float texture(sampler2DShadow sampler, vec3 P); 520float texture(samplerCubeShadow sampler, vec4 P); 521 522 vec4 texture( sampler1DArray sampler, vec2 P); 523ivec4 texture(isampler1DArray sampler, vec2 P); 524uvec4 texture(usampler1DArray sampler, vec2 P); 525 526 vec4 texture( sampler2DArray sampler, vec3 P); 527ivec4 texture(isampler2DArray sampler, vec3 P); 528uvec4 texture(usampler2DArray sampler, vec3 P); 529 530float texture(sampler1DArrayShadow sampler, vec3 P); 531float texture(sampler2DArrayShadow sampler, vec4 P); 532 533/* texture - bias variants */ 534 vec4 texture( sampler1D sampler, float P, float bias); 535ivec4 texture(isampler1D sampler, float P, float bias); 536uvec4 texture(usampler1D sampler, float P, float bias); 537 538 vec4 texture( sampler2D sampler, vec2 P, float bias); 539ivec4 texture(isampler2D sampler, vec2 P, float bias); 540uvec4 texture(usampler2D sampler, vec2 P, float bias); 541 542 vec4 texture( sampler3D sampler, vec3 P, float bias); 543ivec4 texture(isampler3D sampler, vec3 P, float bias); 544uvec4 texture(usampler3D sampler, vec3 P, float bias); 545 546 vec4 texture( samplerCube sampler, vec3 P, float bias); 547ivec4 texture(isamplerCube sampler, vec3 P, float bias); 548uvec4 texture(usamplerCube sampler, vec3 P, float bias); 549 550float texture(sampler1DShadow sampler, vec3 P, float bias); 551float texture(sampler2DShadow sampler, vec3 P, float bias); 552float texture(samplerCubeShadow sampler, vec4 P, float bias); 553 554 vec4 texture( sampler1DArray sampler, vec2 P, float bias); 555ivec4 texture(isampler1DArray sampler, vec2 P, float bias); 556uvec4 texture(usampler1DArray sampler, vec2 P, float bias); 557 558 vec4 texture( sampler2DArray sampler, vec3 P, float bias); 559ivec4 texture(isampler2DArray sampler, vec3 P, float bias); 560uvec4 texture(usampler2DArray sampler, vec3 P, float bias); 561 562float texture(sampler1DArrayShadow sampler, vec3 P, float bias); 563 564/* textureProj - no bias */ 565 vec4 textureProj( sampler1D sampler, vec2 P); 566ivec4 textureProj(isampler1D sampler, vec2 P); 567uvec4 textureProj(usampler1D sampler, vec2 P); 568 vec4 textureProj( sampler1D sampler, vec4 P); 569ivec4 textureProj(isampler1D sampler, vec4 P); 570uvec4 textureProj(usampler1D sampler, vec4 P); 571 572 vec4 textureProj( sampler2D sampler, vec3 P); 573ivec4 textureProj(isampler2D sampler, vec3 P); 574uvec4 textureProj(usampler2D sampler, vec3 P); 575 vec4 textureProj( sampler2D sampler, vec4 P); 576ivec4 textureProj(isampler2D sampler, vec4 P); 577uvec4 textureProj(usampler2D sampler, vec4 P); 578 579 vec4 textureProj( sampler3D sampler, vec4 P); 580ivec4 textureProj(isampler3D sampler, vec4 P); 581uvec4 textureProj(usampler3D sampler, vec4 P); 582 583float textureProj(sampler1DShadow sampler, vec4 P); 584float textureProj(sampler2DShadow sampler, vec4 P); 585 586/* textureProj - bias variants */ 587 vec4 textureProj( sampler1D sampler, vec2 P, float bias); 588ivec4 textureProj(isampler1D sampler, vec2 P, float bias); 589uvec4 textureProj(usampler1D sampler, vec2 P, float bias); 590 vec4 textureProj( sampler1D sampler, vec4 P, float bias); 591ivec4 textureProj(isampler1D sampler, vec4 P, float bias); 592uvec4 textureProj(usampler1D sampler, vec4 P, float bias); 593 594 vec4 textureProj( sampler2D sampler, vec3 P, float bias); 595ivec4 textureProj(isampler2D sampler, vec3 P, float bias); 596uvec4 textureProj(usampler2D sampler, vec3 P, float bias); 597 vec4 textureProj( sampler2D sampler, vec4 P, float bias); 598ivec4 textureProj(isampler2D sampler, vec4 P, float bias); 599uvec4 textureProj(usampler2D sampler, vec4 P, float bias); 600 601 vec4 textureProj( sampler3D sampler, vec4 P, float bias); 602ivec4 textureProj(isampler3D sampler, vec4 P, float bias); 603uvec4 textureProj(usampler3D sampler, vec4 P, float bias); 604 605float textureProj(sampler1DShadow sampler, vec4 P, float bias); 606float textureProj(sampler2DShadow sampler, vec4 P, float bias); 607 608/* textureLod */ 609 vec4 textureLod( sampler1D sampler, float P, float lod); 610ivec4 textureLod(isampler1D sampler, float P, float lod); 611uvec4 textureLod(usampler1D sampler, float P, float lod); 612 613 vec4 textureLod( sampler2D sampler, vec2 P, float lod); 614ivec4 textureLod(isampler2D sampler, vec2 P, float lod); 615uvec4 textureLod(usampler2D sampler, vec2 P, float lod); 616 617 vec4 textureLod( sampler3D sampler, vec3 P, float lod); 618ivec4 textureLod(isampler3D sampler, vec3 P, float lod); 619uvec4 textureLod(usampler3D sampler, vec3 P, float lod); 620 621 vec4 textureLod( samplerCube sampler, vec3 P, float lod); 622ivec4 textureLod(isamplerCube sampler, vec3 P, float lod); 623uvec4 textureLod(usamplerCube sampler, vec3 P, float lod); 624 625float textureLod(sampler1DShadow sampler, vec3 P, float lod); 626float textureLod(sampler2DShadow sampler, vec3 P, float lod); 627 628 vec4 textureLod( sampler1DArray sampler, vec2 P, float lod); 629ivec4 textureLod(isampler1DArray sampler, vec2 P, float lod); 630uvec4 textureLod(usampler1DArray sampler, vec2 P, float lod); 631 632 vec4 textureLod( sampler2DArray sampler, vec3 P, float lod); 633ivec4 textureLod(isampler2DArray sampler, vec3 P, float lod); 634uvec4 textureLod(usampler2DArray sampler, vec3 P, float lod); 635 636float textureLod(sampler1DArrayShadow sampler, vec3 P, float lod); 637 638#if 0 639/* textureOffset - no bias */ 640 vec4 textureOffset( sampler1D sampler, float P, int offset); 641ivec4 textureOffset(isampler1D sampler, float P, int offset); 642uvec4 textureOffset(usampler1D sampler, float P, int offset); 643 644 vec4 textureOffset( sampler2D sampler, vec2 P, ivec2 offset); 645ivec4 textureOffset(isampler2D sampler, vec2 P, ivec2 offset); 646uvec4 textureOffset(usampler2D sampler, vec2 P, ivec2 offset); 647 648 vec4 textureOffset( sampler3D sampler, vec3 P, ivec3 offset); 649ivec4 textureOffset(isampler3D sampler, vec3 P, ivec3 offset); 650uvec4 textureOffset(usampler3D sampler, vec3 P, ivec3 offset); 651 652float textureOffset(sampler1DShadow sampler, vec3 P, int offset); 653float textureOffset(sampler2DShadow sampler, vec3 P, ivec2 offset); 654 655 vec4 textureOffset( sampler1DArray sampler, vec2 P, int offset); 656ivec4 textureOffset(isampler1DArray sampler, vec2 P, int offset); 657uvec4 textureOffset(usampler1DArray sampler, vec2 P, int offset); 658 659 vec4 textureOffset( sampler2DArray sampler, vec3 P, ivec2 offset); 660ivec4 textureOffset(isampler2DArray sampler, vec3 P, ivec2 offset); 661uvec4 textureOffset(usampler2DArray sampler, vec3 P, ivec2 offset); 662 663float textureOffset(sampler1DArrayShadow sampler, vec3 P, int offset); 664 665/* textureOffset - bias variants */ 666 vec4 textureOffset( sampler1D sampler, float P, int offset, float bias); 667ivec4 textureOffset(isampler1D sampler, float P, int offset, float bias); 668uvec4 textureOffset(usampler1D sampler, float P, int offset, float bias); 669 670 vec4 textureOffset( sampler2D sampler, vec2 P, ivec2 offset, float bias); 671ivec4 textureOffset(isampler2D sampler, vec2 P, ivec2 offset, float bias); 672uvec4 textureOffset(usampler2D sampler, vec2 P, ivec2 offset, float bias); 673 674 vec4 textureOffset( sampler3D sampler, vec3 P, ivec3 offset, float bias); 675ivec4 textureOffset(isampler3D sampler, vec3 P, ivec3 offset, float bias); 676uvec4 textureOffset(usampler3D sampler, vec3 P, ivec3 offset, float bias); 677 678float textureOffset(sampler1DShadow sampler, vec3 P, int offset, float bias); 679float textureOffset(sampler2DShadow sampler, vec3 P, ivec2 offset, float bias); 680 681 vec4 textureOffset( sampler1DArray sampler, vec2 P, int offset, float bias); 682ivec4 textureOffset(isampler1DArray sampler, vec2 P, int offset, float bias); 683uvec4 textureOffset(usampler1DArray sampler, vec2 P, int offset, float bias); 684 685 vec4 textureOffset( sampler2DArray sampler, vec3 P, ivec2 offset, float bias); 686ivec4 textureOffset(isampler2DArray sampler, vec3 P, ivec2 offset, float bias); 687uvec4 textureOffset(usampler2DArray sampler, vec3 P, ivec2 offset, float bias); 688 689float textureOffset(sampler1DArrayShadow samp, vec3 P, int offset, float bias); 690#endif 691 692/* texelFetch */ 693 vec4 texelFetch( sampler1D sampler, int P, int lod); 694ivec4 texelFetch(isampler1D sampler, int P, int lod); 695uvec4 texelFetch(usampler1D sampler, int P, int lod); 696 697 vec4 texelFetch( sampler2D sampler, ivec2 P, int lod); 698ivec4 texelFetch(isampler2D sampler, ivec2 P, int lod); 699uvec4 texelFetch(usampler2D sampler, ivec2 P, int lod); 700 701 vec4 texelFetch( sampler3D sampler, ivec3 P, int lod); 702ivec4 texelFetch(isampler3D sampler, ivec3 P, int lod); 703uvec4 texelFetch(usampler3D sampler, ivec3 P, int lod); 704 705 vec4 texelFetch( sampler1DArray sampler, ivec2 P, int lod); 706ivec4 texelFetch(isampler1DArray sampler, ivec2 P, int lod); 707uvec4 texelFetch(usampler1DArray sampler, ivec2 P, int lod); 708 709 vec4 texelFetch( sampler2DArray sampler, ivec3 P, int lod); 710ivec4 texelFetch(isampler2DArray sampler, ivec3 P, int lod); 711uvec4 texelFetch(usampler2DArray sampler, ivec3 P, int lod); 712 713#if 0 714/* texelFetchOffset */ 715 vec4 texelFetchOffset( sampler1D sampler, int P, int lod, int offset); 716ivec4 texelFetchOffset(isampler1D sampler, int P, int lod, int offset); 717uvec4 texelFetchOffset(usampler1D sampler, int P, int lod, int offset); 718 719 vec4 texelFetchOffset( sampler2D sampler, ivec2 P, int lod, ivec2 offset); 720ivec4 texelFetchOffset(isampler2D sampler, ivec2 P, int lod, ivec2 offset); 721uvec4 texelFetchOffset(usampler2D sampler, ivec2 P, int lod, ivec2 offset); 722 723 vec4 texelFetchOffset( sampler3D sampler, ivec3 P, int lod, ivec3 offset); 724ivec4 texelFetchOffset(isampler3D sampler, ivec3 P, int lod, ivec3 offset); 725uvec4 texelFetchOffset(usampler3D sampler, ivec3 P, int lod, ivec3 offset); 726 727 vec4 texelFetchOffset( sampler1DArray sampler, ivec2 P, int lod, int offset); 728ivec4 texelFetchOffset(isampler1DArray sampler, ivec2 P, int lod, int offset); 729uvec4 texelFetchOffset(usampler1DArray sampler, ivec2 P, int lod, int offset); 730 731 vec4 texelFetchOffset( sampler2DArray sampler, ivec3 P, int lod, ivec2 offset); 732ivec4 texelFetchOffset(isampler2DArray sampler, ivec3 P, int lod, ivec2 offset); 733uvec4 texelFetchOffset(usampler2DArray sampler, ivec3 P, int lod, ivec2 offset); 734 735/* textureProjOffset - no bias */ 736 vec4 textureProj( sampler1D sampler, vec2 P, int offset); 737ivec4 textureProj(isampler1D sampler, vec2 P, int offset); 738uvec4 textureProj(usampler1D sampler, vec2 P, int offset); 739 vec4 textureProj( sampler1D sampler, vec4 P, int offset); 740ivec4 textureProj(isampler1D sampler, vec4 P, int offset); 741uvec4 textureProj(usampler1D sampler, vec4 P, int offset); 742 743 vec4 textureProj( sampler2D sampler, vec3 P, ivec2 offset); 744ivec4 textureProj(isampler2D sampler, vec3 P, ivec2 offset); 745uvec4 textureProj(usampler2D sampler, vec3 P, ivec2 offset); 746 vec4 textureProj( sampler2D sampler, vec4 P, ivec2 offset); 747ivec4 textureProj(isampler2D sampler, vec4 P, ivec2 offset); 748uvec4 textureProj(usampler2D sampler, vec4 P, ivec2 offset); 749 750 vec4 textureProj( sampler3D sampler, vec4 P, ivec3 offset); 751ivec4 textureProj(isampler3D sampler, vec4 P, ivec3 offset); 752uvec4 textureProj(usampler3D sampler, vec4 P, ivec3 offset); 753 754float textureProj(sampler1DShadow sampler, vec4 P, int offset); 755float textureProj(sampler2DShadow sampler, vec4 P, ivec2 offset); 756 757/* textureProjOffset - bias variants */ 758 vec4 textureProj( sampler1D sampler, vec2 P, int offset, float bias); 759ivec4 textureProj(isampler1D sampler, vec2 P, int offset, float bias); 760uvec4 textureProj(usampler1D sampler, vec2 P, int offset, float bias); 761 vec4 textureProj( sampler1D sampler, vec4 P, int offset, float bias); 762ivec4 textureProj(isampler1D sampler, vec4 P, int offset, float bias); 763uvec4 textureProj(usampler1D sampler, vec4 P, int offset, float bias); 764 765 vec4 textureProj( sampler2D sampler, vec3 P, ivec2 offset, float bias); 766ivec4 textureProj(isampler2D sampler, vec3 P, ivec2 offset, float bias); 767uvec4 textureProj(usampler2D sampler, vec3 P, ivec2 offset, float bias); 768 vec4 textureProj( sampler2D sampler, vec4 P, ivec2 offset, float bias); 769ivec4 textureProj(isampler2D sampler, vec4 P, ivec2 offset, float bias); 770uvec4 textureProj(usampler2D sampler, vec4 P, ivec2 offset, float bias); 771 772 vec4 textureProj( sampler3D sampler, vec4 P, ivec3 offset, float bias); 773ivec4 textureProj(isampler3D sampler, vec4 P, ivec3 offset, float bias); 774uvec4 textureProj(usampler3D sampler, vec4 P, ivec3 offset, float bias); 775 776float textureProj(sampler1DShadow sampler, vec4 P, int offset, float bias); 777float textureProj(sampler2DShadow sampler, vec4 P, ivec2 offset, float bias); 778 779/* textureLodOffset */ 780 vec4 textureLodOffset( sampler1D sampler, float P, float lod, int offset); 781ivec4 textureLodOffset(isampler1D sampler, float P, float lod, int offset); 782uvec4 textureLodOffset(usampler1D sampler, float P, float lod, int offset); 783 784 vec4 textureLodOffset( sampler2D sampler, vec2 P, float lod, ivec2 offset); 785ivec4 textureLodOffset(isampler2D sampler, vec2 P, float lod, ivec2 offset); 786uvec4 textureLodOffset(usampler2D sampler, vec2 P, float lod, ivec2 offset); 787 788 vec4 textureLodOffset( sampler3D sampler, vec3 P, float lod, ivec3 offset); 789ivec4 textureLodOffset(isampler3D sampler, vec3 P, float lod, ivec3 offset); 790uvec4 textureLodOffset(usampler3D sampler, vec3 P, float lod, ivec3 offset); 791 792float textureLodOffset(sampler1DShadow samp, vec3 P, float lod, int offset); 793float textureLodOffset(sampler2DShadow samp, vec3 P, float lod, ivec2 offset); 794 795 vec4 textureLodOffset( sampler1DArray sampler, vec2 P, float lod, int offset); 796ivec4 textureLodOffset(isampler1DArray sampler, vec2 P, float lod, int offset); 797uvec4 textureLodOffset(usampler1DArray sampler, vec2 P, float lod, int offset); 798 799 vec4 textureLodOffset( sampler2DArray samp, vec3 P, float lod, ivec2 offset); 800ivec4 textureLodOffset(isampler2DArray samp, vec3 P, float lod, ivec2 offset); 801uvec4 textureLodOffset(usampler2DArray samp, vec3 P, float lod, ivec2 offset); 802 803float textureLodOffset(sampler1DArrayShadow s, vec3 P, float lod, int offset); 804#endif 805 806/* textureProjLod */ 807 vec4 textureProjLod( sampler1D sampler, vec2 P, float lod); 808ivec4 textureProjLod(isampler1D sampler, vec2 P, float lod); 809uvec4 textureProjLod(usampler1D sampler, vec2 P, float lod); 810 vec4 textureProjLod( sampler1D sampler, vec4 P, float lod); 811ivec4 textureProjLod(isampler1D sampler, vec4 P, float lod); 812uvec4 textureProjLod(usampler1D sampler, vec4 P, float lod); 813 814 vec4 textureProjLod( sampler2D sampler, vec3 P, float lod); 815ivec4 textureProjLod(isampler2D sampler, vec3 P, float lod); 816uvec4 textureProjLod(usampler2D sampler, vec3 P, float lod); 817 vec4 textureProjLod( sampler2D sampler, vec4 P, float lod); 818ivec4 textureProjLod(isampler2D sampler, vec4 P, float lod); 819uvec4 textureProjLod(usampler2D sampler, vec4 P, float lod); 820 821 vec4 textureProjLod( sampler3D sampler, vec4 P, float lod); 822ivec4 textureProjLod(isampler3D sampler, vec4 P, float lod); 823uvec4 textureProjLod(usampler3D sampler, vec4 P, float lod); 824 825float textureProjLod(sampler1DShadow sampler, vec4 P, float lod); 826float textureProjLod(sampler2DShadow sampler, vec4 P, float lod); 827 828#if 0 829/* textureProjLodOffset */ 830 vec4 textureProjLodOffset( sampler1D sampler, vec2 P, float lod, int offset); 831ivec4 textureProjLodOffset(isampler1D sampler, vec2 P, float lod, int offset); 832uvec4 textureProjLodOffset(usampler1D sampler, vec2 P, float lod, int offset); 833 vec4 textureProjLodOffset( sampler1D sampler, vec4 P, float lod, int offset); 834ivec4 textureProjLodOffset(isampler1D sampler, vec4 P, float lod, int offset); 835uvec4 textureProjLodOffset(usampler1D sampler, vec4 P, float lod, int offset); 836 837 vec4 textureProjLodOffset( sampler2D sampler, vec3 P, float lod, ivec2 offset); 838ivec4 textureProjLodOffset(isampler2D sampler, vec3 P, float lod, ivec2 offset); 839uvec4 textureProjLodOffset(usampler2D sampler, vec3 P, float lod, ivec2 offset); 840 vec4 textureProjLodOffset( sampler2D sampler, vec4 P, float lod, ivec2 offset); 841ivec4 textureProjLodOffset(isampler2D sampler, vec4 P, float lod, ivec2 offset); 842uvec4 textureProjLodOffset(usampler2D sampler, vec4 P, float lod, ivec2 offset); 843 844 vec4 textureProjLodOffset( sampler3D sampler, vec4 P, float lod, ivec3 offset); 845ivec4 textureProjLodOffset(isampler3D sampler, vec4 P, float lod, ivec3 offset); 846uvec4 textureProjLodOffset(usampler3D sampler, vec4 P, float lod, ivec3 offset); 847 848float textureProjLodOffset(sampler1DShadow s, vec4 P, float lod, int offset); 849float textureProjLodOffset(sampler2DShadow s, vec4 P, float lod, ivec2 offset); 850#endif 851 852/* textureGrad */ 853 vec4 textureGrad( sampler1D sampler, float P, float dPdx, float dPdy); 854ivec4 textureGrad(isampler1D sampler, float P, float dPdx, float dPdy); 855uvec4 textureGrad(usampler1D sampler, float P, float dPdx, float dPdy); 856 857 vec4 textureGrad( sampler2D sampler, vec2 P, vec2 dPdx, vec2 dPdy); 858ivec4 textureGrad(isampler2D sampler, vec2 P, vec2 dPdx, vec2 dPdy); 859uvec4 textureGrad(usampler2D sampler, vec2 P, vec2 dPdx, vec2 dPdy); 860 861 vec4 textureGrad( sampler3D sampler, vec3 P, vec3 dPdx, vec3 dPdy); 862ivec4 textureGrad(isampler3D sampler, vec3 P, vec3 dPdx, vec3 dPdy); 863uvec4 textureGrad(usampler3D sampler, vec3 P, vec3 dPdx, vec3 dPdy); 864 865 vec4 textureGrad( samplerCube sampler, vec3 P, vec3 dPdx, vec3 dPdy); 866ivec4 textureGrad(isamplerCube sampler, vec3 P, vec3 dPdx, vec3 dPdy); 867uvec4 textureGrad(usamplerCube sampler, vec3 P, vec3 dPdx, vec3 dPdy); 868 869float textureGrad(sampler1DShadow sampler, vec3 P, float dPdx, float dPdy); 870float textureGrad(sampler2DShadow sampler, vec3 P, vec2 dPdx, vec2 dPdy); 871float textureGrad(samplerCubeShadow sampler, vec4 P, vec3 dPdx, vec3 dPdy); 872 873 vec4 textureGrad( sampler1DArray sampler, vec2 P, float dPdx, float dPdy); 874ivec4 textureGrad(isampler1DArray sampler, vec2 P, float dPdx, float dPdy); 875uvec4 textureGrad(usampler1DArray sampler, vec2 P, float dPdx, float dPdy); 876 877 vec4 textureGrad( sampler2DArray sampler, vec3 P, vec2 dPdx, vec2 dPdy); 878ivec4 textureGrad(isampler2DArray sampler, vec3 P, vec2 dPdx, vec2 dPdy); 879uvec4 textureGrad(usampler2DArray sampler, vec3 P, vec2 dPdx, vec2 dPdy); 880 881float textureGrad(sampler1DArrayShadow sampler, vec3 P, float dPdx, float dPdy); 882float textureGrad(sampler2DArrayShadow sampler, vec4 P, vec2 dPdx, vec2 dPdy); 883 884#if 0 885/* textureGradOffset */ 886 vec4 textureGradOffset( sampler1D s, float P, float dx, float dy, int off); 887ivec4 textureGradOffset(isampler1D s, float P, float dx, float dy, int offset); 888uvec4 textureGradOffset(usampler1D s, float P, float dx, float dy, int offset); 889 890 vec4 textureGradOffset( sampler2D s, vec2 P, vec2 dx, vec2 dy, ivec2 offset); 891ivec4 textureGradOffset(isampler2D s, vec2 P, vec2 dx, vec2 dy, ivec2 offset); 892uvec4 textureGradOffset(usampler2D s, vec2 P, vec2 dx, vec2 dy, ivec2 offset); 893 894 vec4 textureGradOffset( sampler3D s, vec3 P, vec3 dx, vec3 dy, ivec3 offset); 895ivec4 textureGradOffset(isampler3D s, vec3 P, vec3 dx, vec3 dy, ivec3 offset); 896uvec4 textureGradOffset(usampler3D s, vec3 P, vec3 dx, vec3 dy, ivec3 offset); 897 898 vec4 textureGradOffset( samplerCube s, vec3 P, vec3 dx, vec3 dy, ivec3 offset); 899ivec4 textureGradOffset(isamplerCube s, vec3 P, vec3 dx, vec3 dy, ivec3 offset); 900uvec4 textureGradOffset(usamplerCube s, vec3 P, vec3 dx, vec3 dy, ivec3 offset); 901 902float textureGradOffset(sampler1DShadow s, vec3 P, float dx, float dy, int off); 903float textureGradOffset(sampler2DShadow s, vec3 P, vec2 dx, vec2 dy, ivec2 off); 904 905 vec4 textureGradOffset( sampler1DArray s, vec2 P, float dx, float dy, int off); 906ivec4 textureGradOffset(isampler1DArray s, vec2 P, float dx, float dy, int off); 907uvec4 textureGradOffset(usampler1DArray s, vec2 P, float dx, float dy, int off); 908 909 vec4 textureGradOffset( sampler2DArray s, vec3 P, vec2 dx, vec2 dy, ivec2 off); 910ivec4 textureGradOffset(isampler2DArray s, vec3 P, vec2 dx, vec2 dy, ivec2 off); 911uvec4 textureGradOffset(usampler2DArray s, vec3 P, vec2 dx, vec2 dy, ivec2 off); 912 913float textureGradOffset(sampler1DArrayShadow s, vec3 P, float dx, float dy, int o); 914float textureGradOffset(sampler2DArrayShadow s, vec4 P, vec2 dx, vec2 dy, ivec2 o); 915#endif 916 917/* textureProjGrad */ 918 vec4 textureProjGrad( sampler1D sampler, vec2 P, float dPdx, float dPdy); 919ivec4 textureProjGrad(isampler1D sampler, vec2 P, float dPdx, float dPdy); 920uvec4 textureProjGrad(usampler1D sampler, vec2 P, float dPdx, float dPdy); 921 vec4 textureProjGrad( sampler1D sampler, vec4 P, float dPdx, float dPdy); 922ivec4 textureProjGrad(isampler1D sampler, vec4 P, float dPdx, float dPdy); 923uvec4 textureProjGrad(usampler1D sampler, vec4 P, float dPdx, float dPdy); 924 925 vec4 textureProjGrad( sampler2D sampler, vec3 P, vec2 dPdx, vec2 dPdy); 926ivec4 textureProjGrad(isampler2D sampler, vec3 P, vec2 dPdx, vec2 dPdy); 927uvec4 textureProjGrad(usampler2D sampler, vec3 P, vec2 dPdx, vec2 dPdy); 928 vec4 textureProjGrad( sampler2D sampler, vec4 P, vec2 dPdx, vec2 dPdy); 929ivec4 textureProjGrad(isampler2D sampler, vec4 P, vec2 dPdx, vec2 dPdy); 930uvec4 textureProjGrad(usampler2D sampler, vec4 P, vec2 dPdx, vec2 dPdy); 931 932 vec4 textureProjGrad( sampler3D sampler, vec4 P, vec3 dPdx, vec3 dPdy); 933ivec4 textureProjGrad(isampler3D sampler, vec4 P, vec3 dPdx, vec3 dPdy); 934uvec4 textureProjGrad(usampler3D sampler, vec4 P, vec3 dPdx, vec3 dPdy); 935 936float textureProjGrad(sampler1DShadow sampler, vec4 P, float dPdx, float dPdy); 937float textureProjGrad(sampler2DShadow sampler, vec4 P, vec2 dPdx, vec2 dPdy); 938 939#if 0 940/* textureProjGradOffset */ 941 vec4 textureProjGradOffset( sampler1D s, vec2 P, float dx, float dy, int off); 942ivec4 textureProjGradOffset(isampler1D s, vec2 P, float dx, float dy, int off); 943uvec4 textureProjGradOffset(usampler1D s, vec2 P, float dx, float dy, int off); 944 vec4 textureProjGradOffset( sampler1D s, vec4 P, float dx, float dy, int off); 945ivec4 textureProjGradOffset(isampler1D s, vec4 P, float dx, float dy, int off); 946uvec4 textureProjGradOffset(usampler1D s, vec4 P, float dx, float dy, int off); 947 948 vec4 textureProjGradOffset( sampler2D s, vec3 P, vec2 dx, vec2 dy, ivec2 off); 949ivec4 textureProjGradOffset(isampler2D s, vec3 P, vec2 dx, vec2 dy, ivec2 off); 950uvec4 textureProjGradOffset(usampler2D s, vec3 P, vec2 dx, vec2 dy, ivec2 off); 951 vec4 textureProjGradOffset( sampler2D s, vec4 P, vec2 dx, vec2 dy, ivec2 off); 952ivec4 textureProjGradOffset(isampler2D s, vec4 P, vec2 dx, vec2 dy, ivec2 off); 953uvec4 textureProjGradOffset(usampler2D s, vec4 P, vec2 dx, vec2 dy, ivec2 off); 954 955 vec4 textureProjGradOffset( sampler3D s, vec4 P, vec3 dx, vec3 dy, ivec3 off); 956ivec4 textureProjGradOffset(isampler3D s, vec4 P, vec3 dx, vec3 dy, ivec3 off); 957uvec4 textureProjGradOffset(usampler3D s, vec4 P, vec3 dx, vec3 dy, ivec3 off); 958 959float textureProjGradOffset(sampler1DShadow s, vec4 P, float dx, float dy, int o); 960float textureProjGradOffset(sampler2DShadow s, vec4 P, vec2 dx, vec2 dy, vec2 o); 961#endif 962 963/* 964 * The following texture functions are deprecated: 965 */ 966vec4 texture1D (sampler1D sampler, float coord); 967vec4 texture1DProj (sampler1D sampler, vec2 coord); 968vec4 texture1DProj (sampler1D sampler, vec4 coord); 969vec4 texture1D (sampler1D sampler, float coord, float bias); 970vec4 texture1DProj (sampler1D sampler, vec2 coord, float bias); 971vec4 texture1DProj (sampler1D sampler, vec4 coord, float bias); 972vec4 texture1DLod (sampler1D sampler, float coord, float lod); 973vec4 texture1DProjLod(sampler1D sampler, vec2 coord, float lod); 974vec4 texture1DProjLod(sampler1D sampler, vec4 coord, float lod); 975 976vec4 texture2D (sampler2D sampler, vec2 coord); 977vec4 texture2DProj (sampler2D sampler, vec3 coord); 978vec4 texture2DProj (sampler2D sampler, vec4 coord); 979vec4 texture2D (sampler2D sampler, vec2 coord, float bias); 980vec4 texture2DProj (sampler2D sampler, vec3 coord, float bias); 981vec4 texture2DProj (sampler2D sampler, vec4 coord, float bias); 982vec4 texture2DLod (sampler2D sampler, vec2 coord, float lod); 983vec4 texture2DProjLod(sampler2D sampler, vec3 coord, float lod); 984vec4 texture2DProjLod(sampler2D sampler, vec4 coord, float lod); 985 986vec4 texture3D (sampler3D sampler, vec3 coord); 987vec4 texture3DProj (sampler3D sampler, vec4 coord); 988vec4 texture3D (sampler3D sampler, vec3 coord, float bias); 989vec4 texture3DProj (sampler3D sampler, vec4 coord, float bias); 990vec4 texture3DLod (sampler3D sampler, vec3 coord, float lod); 991vec4 texture3DProjLod(sampler3D sampler, vec4 coord, float lod); 992 993vec4 textureCube (samplerCube sampler, vec3 coord); 994vec4 textureCube (samplerCube sampler, vec3 coord, float bias); 995vec4 textureCubeLod (samplerCube sampler, vec3 coord, float lod); 996 997vec4 shadow1D (sampler1DShadow sampler, vec3 coord); 998vec4 shadow2D (sampler2DShadow sampler, vec3 coord); 999vec4 shadow1DProj (sampler1DShadow sampler, vec4 coord); 1000vec4 shadow2DProj (sampler2DShadow sampler, vec4 coord); 1001vec4 shadow1D (sampler1DShadow sampler, vec3 coord, float bias); 1002vec4 shadow2D (sampler2DShadow sampler, vec3 coord, float bias); 1003vec4 shadow1DProj (sampler1DShadow sampler, vec4 coord, float bias); 1004vec4 shadow2DProj (sampler2DShadow sampler, vec4 coord, float bias); 1005vec4 shadow1DLod (sampler1DShadow sampler, vec3 coord, float lod); 1006vec4 shadow2DLod (sampler2DShadow sampler, vec3 coord, float lod); 1007vec4 shadow1DProjLod(sampler1DShadow sampler, vec4 coord, float lod); 1008vec4 shadow2DProjLod(sampler2DShadow sampler, vec4 coord, float lod); 1009 1010/* 1011 * 8.8 - Fragment Processing Functions 1012 */ 1013float dFdx(float p); 1014vec2 dFdx(vec2 p); 1015vec3 dFdx(vec3 p); 1016vec4 dFdx(vec4 p); 1017 1018float dFdy(float p); 1019vec2 dFdy(vec2 p); 1020vec3 dFdy(vec3 p); 1021vec4 dFdy(vec4 p); 1022 1023float fwidth(float p); 1024vec2 fwidth(vec2 p); 1025vec3 fwidth(vec3 p); 1026vec4 fwidth(vec4 p); 1027 1028/* 1029 * 8.9 - Noise Functions 1030 */ 1031float noise1(float x); 1032float noise1(vec2 x); 1033float noise1(vec3 x); 1034float noise1(vec4 x); 1035 1036vec2 noise2(float x); 1037vec2 noise2(vec2 x); 1038vec2 noise2(vec3 x); 1039vec2 noise2(vec4 x); 1040 1041vec3 noise3(float x); 1042vec3 noise3(vec2 x); 1043vec3 noise3(vec3 x); 1044vec3 noise3(vec4 x); 1045 1046vec4 noise4(float x); 1047vec4 noise4(vec2 x); 1048vec4 noise4(vec3 x); 1049vec4 noise4(vec4 x); 1050