summaryrefslogtreecommitdiff
path: root/tests/spec/ext_texture_shadow_lod/compiler/negative_compile.frag
blob: e940113aceb0e7f6e6fcfcad0c4a1ca96eeecb21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* [config]
 * expect_result: fail
 * glsl_version: 1.30
 * require_extensions: GL_EXT_gpu_shader4 GL_EXT_texture_shadow_lod
 * [end config]
 */

/* The extension is supported by the implementation, but it is not enabled in
 * the shader. This should fail to compile.
 */

#version 130

uniform vec4 a_uniform;
uniform sampler2DArrayShadow sampler;

void main() {
	float color = textureLod(sampler, a_uniform, 1.0);
	gl_FragColor = vec4(color, color, color, color);
}