1#version 430 core 2#extension GL_ARB_enhanced_layouts : require 3 4layout (xfb_offset = 0) out vec4 xfb_buffer[]; // ERROR: unsized array cannot be used for an xfb buffer? 5 6in vec4 in_vs; 7out vec4 out_vs; 8 9void main() 10{ 11 vec4 result = in_vs; 12 13 xfb_buffer[0] = result / 2; 14 15 out_vs = result; 16} 17