File: ext_texture_array.geom

package info (click to toggle)
piglit 0~git20220119-124bca3c9-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 109,012 kB
  • sloc: ansic: 273,511; xml: 46,666; python: 33,098; lisp: 20,392; cpp: 12,480; sh: 22; makefile: 22; pascal: 5
file content (28 lines) | stat: -rw-r--r-- 731 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* [config]
 * expect_result: pass
 * glsl_version: 1.50
 * require_extensions: GL_EXT_texture_array
 * [end config]
 *
 * Verify that GL_EXT_texture_array can be used in geometry shaders
 */
#version 150
#extension GL_EXT_texture_array: require

uniform sampler1DArray s1;
uniform sampler2DArray s2;
uniform sampler1DArrayShadow s1s;
uniform sampler2DArrayShadow s2s;

void main()
{
  vec4 foo = texture1DArray(s1, vec2(0.0));
  foo += texture1DArrayLod(s1, vec2(0.0), 0.0);
  foo += texture2DArray(s2, vec3(0.0));
  foo += texture2DArrayLod(s2, vec3(0.0), 0.0);
  foo += shadow1DArray(s1s, vec3(0.0));
  foo += shadow1DArrayLod(s1s, vec3(0.0), 0.0);
  foo += shadow2DArray(s2s, vec4(0.0));
  gl_Position = foo;
  EmitVertex();
}