summaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorPaul Berry <[email protected]>2013-06-28 13:02:23 -0700
committerPaul Berry <[email protected]>2013-08-01 20:19:51 -0700
commit37270715ff00cff3e549f35069a65e16c56b03be (patch)
treeaa378fc5496d77539ba1e873b479aa02aa138bd1 /src/glsl
parent6a2baf3a06125405aa648e208af782e53f1312c0 (diff)
glsl: Add EXT_texture_array support for geometry shaders.
We can't just use a ".glsl" file since the Lod variants are only available in vertex and geometry shaders, while the bias variants are only available in the fragment shader. Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/builtins/profiles/EXT_texture_array.geom12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/glsl/builtins/profiles/EXT_texture_array.geom b/src/glsl/builtins/profiles/EXT_texture_array.geom
new file mode 100644
index 00000000000..2308ba774a1
--- /dev/null
+++ b/src/glsl/builtins/profiles/EXT_texture_array.geom
@@ -0,0 +1,12 @@
+#extension GL_ARB_geometry_shader4 : enable
+#extension GL_EXT_texture_array : enable
+vec4 texture1DArray(sampler1DArray sampler, vec2 coord);
+vec4 texture1DArrayLod(sampler1DArray sampler, vec2 coord, float lod);
+
+vec4 texture2DArray(sampler2DArray sampler, vec3 coord);
+vec4 texture2DArrayLod(sampler2DArray sampler, vec3 coord, float lod);
+
+vec4 shadow1DArray(sampler1DArrayShadow sampler, vec3 coord);
+vec4 shadow1DArrayLod(sampler1DArrayShadow sampler, vec3 coord, float lod);
+
+vec4 shadow2DArray(sampler2DArrayShadow sampler, vec4 coord);