blob: fbc84daa5b0090a936d6067033cc40044828981d (
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
26
27
28
29
|
// [config]
// expect_result: pass
// glsl_version: 1.50
// check_link: true
// require_extensions: GL_ARB_enhanced_layouts
// [end config]
//
// From the GL_ARB_enhanced_layouts spec:
//
// "While *xfb_stride* can be declared multiple times for the same buffer,
// it is a compile-time or link-time error to have different values
// specified for the stride for the same buffer."
#version 150
#extension GL_ARB_enhanced_layouts: require
layout(xfb_stride = 20) out block1 {
vec4 var;
};
layout(xfb_buffer = 0, xfb_stride = 20) out block2 {
vec4 var2;
};
void main()
{
var = vec4(1.0);
var2 = vec4(0.0);
}
|