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 29 30 31 32
|
# Tests that variables in the vertex shader can be qualified with 'sample out'
# and link against variables in the fragment shader qualified with 'sample in'
[require]
GLSL >= 1.50
GL_ARB_gpu_shader5
[vertex shader]
#version 150
#extension GL_ARB_gpu_shader5: require
sample out vec4 per_sample_color;
void main() {
per_sample_color = vec4(1);
}
[fragment shader]
#version 150
#extension GL_ARB_gpu_shader5: require
sample in vec4 per_sample_color;
out vec4 out_color;
void main() {
out_color = per_sample_color;
}
[test]
link success
|