1#version 140 2/* texture - bias variants */ 3 vec4 texture( sampler1D sampler, float P, float bias); 4ivec4 texture(isampler1D sampler, float P, float bias); 5uvec4 texture(usampler1D sampler, float P, float bias); 6 7 vec4 texture( sampler2D sampler, vec2 P, float bias); 8ivec4 texture(isampler2D sampler, vec2 P, float bias); 9uvec4 texture(usampler2D sampler, vec2 P, float bias); 10 11 vec4 texture( sampler3D sampler, vec3 P, float bias); 12ivec4 texture(isampler3D sampler, vec3 P, float bias); 13uvec4 texture(usampler3D sampler, vec3 P, float bias); 14 15 vec4 texture( samplerCube sampler, vec3 P, float bias); 16ivec4 texture(isamplerCube sampler, vec3 P, float bias); 17uvec4 texture(usamplerCube sampler, vec3 P, float bias); 18 19float texture(sampler1DShadow sampler, vec3 P, float bias); 20float texture(sampler2DShadow sampler, vec3 P, float bias); 21float texture(samplerCubeShadow sampler, vec4 P, float bias); 22 23 vec4 texture( sampler1DArray sampler, vec2 P, float bias); 24ivec4 texture(isampler1DArray sampler, vec2 P, float bias); 25uvec4 texture(usampler1DArray sampler, vec2 P, float bias); 26 27 vec4 texture( sampler2DArray sampler, vec3 P, float bias); 28ivec4 texture(isampler2DArray sampler, vec3 P, float bias); 29uvec4 texture(usampler2DArray sampler, vec3 P, float bias); 30 31float texture(sampler1DArrayShadow sampler, vec3 P, float bias); 32 33/* textureProj - bias variants */ 34 vec4 textureProj( sampler1D sampler, vec2 P, float bias); 35ivec4 textureProj(isampler1D sampler, vec2 P, float bias); 36uvec4 textureProj(usampler1D sampler, vec2 P, float bias); 37 vec4 textureProj( sampler1D sampler, vec4 P, float bias); 38ivec4 textureProj(isampler1D sampler, vec4 P, float bias); 39uvec4 textureProj(usampler1D sampler, vec4 P, float bias); 40 41 vec4 textureProj( sampler2D sampler, vec3 P, float bias); 42ivec4 textureProj(isampler2D sampler, vec3 P, float bias); 43uvec4 textureProj(usampler2D sampler, vec3 P, float bias); 44 vec4 textureProj( sampler2D sampler, vec4 P, float bias); 45ivec4 textureProj(isampler2D sampler, vec4 P, float bias); 46uvec4 textureProj(usampler2D sampler, vec4 P, float bias); 47 48 vec4 textureProj( sampler3D sampler, vec4 P, float bias); 49ivec4 textureProj(isampler3D sampler, vec4 P, float bias); 50uvec4 textureProj(usampler3D sampler, vec4 P, float bias); 51 52float textureProj(sampler1DShadow sampler, vec4 P, float bias); 53float textureProj(sampler2DShadow sampler, vec4 P, float bias); 54 55/* textureOffset - bias variants */ 56 vec4 textureOffset( sampler1D sampler, float P, int offset, float bias); 57ivec4 textureOffset(isampler1D sampler, float P, int offset, float bias); 58uvec4 textureOffset(usampler1D sampler, float P, int offset, float bias); 59 60 vec4 textureOffset( sampler2D sampler, vec2 P, ivec2 offset, float bias); 61ivec4 textureOffset(isampler2D sampler, vec2 P, ivec2 offset, float bias); 62uvec4 textureOffset(usampler2D sampler, vec2 P, ivec2 offset, float bias); 63 64 vec4 textureOffset( sampler3D sampler, vec3 P, ivec3 offset, float bias); 65ivec4 textureOffset(isampler3D sampler, vec3 P, ivec3 offset, float bias); 66uvec4 textureOffset(usampler3D sampler, vec3 P, ivec3 offset, float bias); 67 68float textureOffset(sampler1DShadow sampler, vec3 P, int offset, float bias); 69float textureOffset(sampler2DShadow sampler, vec3 P, ivec2 offset, float bias); 70 71 vec4 textureOffset( sampler1DArray sampler, vec2 P, int offset, float bias); 72ivec4 textureOffset(isampler1DArray sampler, vec2 P, int offset, float bias); 73uvec4 textureOffset(usampler1DArray sampler, vec2 P, int offset, float bias); 74 75 vec4 textureOffset( sampler2DArray sampler, vec3 P, ivec2 offset, float bias); 76ivec4 textureOffset(isampler2DArray sampler, vec3 P, ivec2 offset, float bias); 77uvec4 textureOffset(usampler2DArray sampler, vec3 P, ivec2 offset, float bias); 78 79float textureOffset(sampler1DArrayShadow samp, vec3 P, int offset, float bias); 80 81/* textureProjOffsetOffset - bias variants */ 82 vec4 textureProjOffset( sampler1D sampler, vec2 P, int offset, float bias); 83ivec4 textureProjOffset(isampler1D sampler, vec2 P, int offset, float bias); 84uvec4 textureProjOffset(usampler1D sampler, vec2 P, int offset, float bias); 85 vec4 textureProjOffset( sampler1D sampler, vec4 P, int offset, float bias); 86ivec4 textureProjOffset(isampler1D sampler, vec4 P, int offset, float bias); 87uvec4 textureProjOffset(usampler1D sampler, vec4 P, int offset, float bias); 88 89 vec4 textureProjOffset( sampler2D sampler, vec3 P, ivec2 offset, float bias); 90ivec4 textureProjOffset(isampler2D sampler, vec3 P, ivec2 offset, float bias); 91uvec4 textureProjOffset(usampler2D sampler, vec3 P, ivec2 offset, float bias); 92 vec4 textureProjOffset( sampler2D sampler, vec4 P, ivec2 offset, float bias); 93ivec4 textureProjOffset(isampler2D sampler, vec4 P, ivec2 offset, float bias); 94uvec4 textureProjOffset(usampler2D sampler, vec4 P, ivec2 offset, float bias); 95 96 vec4 textureProjOffset( sampler3D sampler, vec4 P, ivec3 offset, float bias); 97ivec4 textureProjOffset(isampler3D sampler, vec4 P, ivec3 offset, float bias); 98uvec4 textureProjOffset(usampler3D sampler, vec4 P, ivec3 offset, float bias); 99 100float textureProjOffset(sampler1DShadow s, vec4 P, int offset, float bias); 101float textureProjOffset(sampler2DShadow s, vec4 P, ivec2 offset, float bias); 102 103/* 104 * The following texture functions are deprecated: 105 */ 106vec4 texture1D (sampler1D sampler, float coord, float bias); 107vec4 texture1DProj (sampler1D sampler, vec2 coord, float bias); 108vec4 texture1DProj (sampler1D sampler, vec4 coord, float bias); 109 110vec4 texture2D (sampler2D sampler, vec2 coord, float bias); 111vec4 texture2DProj (sampler2D sampler, vec3 coord, float bias); 112vec4 texture2DProj (sampler2D sampler, vec4 coord, float bias); 113 114vec4 texture3D (sampler3D sampler, vec3 coord, float bias); 115vec4 texture3DProj (sampler3D sampler, vec4 coord, float bias); 116 117vec4 textureCube (samplerCube sampler, vec3 coord, float bias); 118 119vec4 shadow1D (sampler1DShadow sampler, vec3 coord, float bias); 120vec4 shadow2D (sampler2DShadow sampler, vec3 coord, float bias); 121vec4 shadow1DProj (sampler1DShadow sampler, vec4 coord, float bias); 122vec4 shadow2DProj (sampler2DShadow sampler, vec4 coord, float bias); 123 124/* 125 * 8.8 - Fragment Processing Functions 126 */ 127float dFdx(float p); 128vec2 dFdx(vec2 p); 129vec3 dFdx(vec3 p); 130vec4 dFdx(vec4 p); 131 132float dFdy(float p); 133vec2 dFdy(vec2 p); 134vec3 dFdy(vec3 p); 135vec4 dFdy(vec4 p); 136 137float fwidth(float p); 138vec2 fwidth(vec2 p); 139vec3 fwidth(vec3 p); 140vec4 fwidth(vec4 p); 141