summaryrefslogtreecommitdiff
path: root/tests/spec/arb_gpu_shader5/compiler/sample-qualifier/fs-sample-centroid-disallowed.frag
blob: b1439a68b9964e9643dfe135dc0b11d4c4a0099b (plain)
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
// [config]
// expect_result: fail
// glsl_version: 1.50
// require_extensions: GL_ARB_gpu_shader5
// [end config]

#version 150
#extension GL_ARB_gpu_shader5: require

/* At most one aux. storage qualifier is allowed.
 * Note that strictly speaking, under gpu_shader5 / GLSL 4.00,
 * the storage qualifier is the entire 'centroid in' or 'sample in',
 * but we use the wording from shading_language_420pack / GLSL 4.20.
 *
 * A strict gpu_shader5 / GLSL 4.00 implementation should reject this
 * too.
 */
sample centroid in vec4 x;
out vec4 out_color;

void main()
{
	out_color = x;
}