Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | RSS feed

  1. #version 300 es
  2. precision highp float;
  3.  
  4. /* texture - bias variants */
  5.  vec4 texture( sampler2D sampler, vec2 P, float bias);
  6. ivec4 texture(isampler2D sampler, vec2 P, float bias);
  7. uvec4 texture(usampler2D sampler, vec2 P, float bias);
  8.  
  9.  vec4 texture( sampler3D sampler, vec3 P, float bias);
  10. ivec4 texture(isampler3D sampler, vec3 P, float bias);
  11. uvec4 texture(usampler3D sampler, vec3 P, float bias);
  12.  
  13.  vec4 texture( samplerCube sampler, vec3 P, float bias);
  14. ivec4 texture(isamplerCube sampler, vec3 P, float bias);
  15. uvec4 texture(usamplerCube sampler, vec3 P, float bias);
  16.  
  17. float texture(sampler2DShadow   sampler, vec3 P, float bias);
  18. float texture(samplerCubeShadow sampler, vec4 P, float bias);
  19.  
  20.  vec4 texture( sampler2DArray sampler, vec3 P, float bias);
  21. ivec4 texture(isampler2DArray sampler, vec3 P, float bias);
  22. uvec4 texture(usampler2DArray sampler, vec3 P, float bias);
  23.  
  24. float texture(sampler2DArrayShadow sampler, vec4 P, float bias);
  25.  
  26. /* textureProj - bias variants */
  27.  vec4 textureProj( sampler2D sampler, vec3 P, float bias);
  28. ivec4 textureProj(isampler2D sampler, vec3 P, float bias);
  29. uvec4 textureProj(usampler2D sampler, vec3 P, float bias);
  30.  vec4 textureProj( sampler2D sampler, vec4 P, float bias);
  31. ivec4 textureProj(isampler2D sampler, vec4 P, float bias);
  32. uvec4 textureProj(usampler2D sampler, vec4 P, float bias);
  33.  
  34.  vec4 textureProj( sampler3D sampler, vec4 P, float bias);
  35. ivec4 textureProj(isampler3D sampler, vec4 P, float bias);
  36. uvec4 textureProj(usampler3D sampler, vec4 P, float bias);
  37.  
  38. float textureProj(sampler2DShadow sampler, vec4 P, float bias);
  39.  
  40. /* textureOffset - bias variants */
  41.  vec4 textureOffset( sampler2D sampler, vec2 P, ivec2 offset, float bias);
  42. ivec4 textureOffset(isampler2D sampler, vec2 P, ivec2 offset, float bias);
  43. uvec4 textureOffset(usampler2D sampler, vec2 P, ivec2 offset, float bias);
  44.  
  45.  vec4 textureOffset( sampler3D sampler, vec3 P, ivec3 offset, float bias);
  46. ivec4 textureOffset(isampler3D sampler, vec3 P, ivec3 offset, float bias);
  47. uvec4 textureOffset(usampler3D sampler, vec3 P, ivec3 offset, float bias);
  48.  
  49. float textureOffset(sampler2DShadow sampler, vec3 P, ivec2 offset, float bias);
  50.  
  51.  vec4 textureOffset( sampler2DArray sampler, vec3 P, ivec2 offset, float bias);
  52. ivec4 textureOffset(isampler2DArray sampler, vec3 P, ivec2 offset, float bias);
  53. uvec4 textureOffset(usampler2DArray sampler, vec3 P, ivec2 offset, float bias);
  54.  
  55. /* textureProjOffsetOffset - bias variants */
  56.  vec4 textureProjOffset( sampler2D sampler, vec3 P, ivec2 offset, float bias);
  57. ivec4 textureProjOffset(isampler2D sampler, vec3 P, ivec2 offset, float bias);
  58. uvec4 textureProjOffset(usampler2D sampler, vec3 P, ivec2 offset, float bias);
  59.  vec4 textureProjOffset( sampler2D sampler, vec4 P, ivec2 offset, float bias);
  60. ivec4 textureProjOffset(isampler2D sampler, vec4 P, ivec2 offset, float bias);
  61. uvec4 textureProjOffset(usampler2D sampler, vec4 P, ivec2 offset, float bias);
  62.  
  63.  vec4 textureProjOffset( sampler3D sampler, vec4 P, ivec3 offset, float bias);
  64. ivec4 textureProjOffset(isampler3D sampler, vec4 P, ivec3 offset, float bias);
  65. uvec4 textureProjOffset(usampler3D sampler, vec4 P, ivec3 offset, float bias);
  66.  
  67. float textureProjOffset(sampler2DShadow s, vec4 P, ivec2 offset, float bias);
  68.  
  69. /*
  70.  * 8.9 - Fragment Processing Functions
  71.  */
  72. float dFdx(float p);
  73. vec2  dFdx(vec2  p);
  74. vec3  dFdx(vec3  p);
  75. vec4  dFdx(vec4  p);
  76.  
  77. float dFdy(float p);
  78. vec2  dFdy(vec2  p);
  79. vec3  dFdy(vec3  p);
  80. vec4  dFdy(vec4  p);
  81.  
  82. float fwidth(float p);
  83. vec2  fwidth(vec2  p);
  84. vec3  fwidth(vec3  p);
  85. vec4  fwidth(vec4  p);
  86.