1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
// [config]
// expect_result: fail
// glsl_version: 1.10
// [end config]
//
// Check that a bvec3 can't be used as a varying in GLSL 1.10.
//
// From section 4.3.6 ("Varying") of the GLSL 1.10 spec:
// The varying qualifier can be used only with the data types
// float, vec2, vec3, vec4, mat2, mat3, and mat4, or arrays of
// these. Structures cannot be varying.
#version 110
varying bvec3 foo;
void main()
{
gl_Position = vec4(0.0);
foo = bvec3(true, false, true);
}
|