1#version 150 core 2#extension GL_ARB_gpu_shader5 : require 3layout(points) in; 4layout(points, max_vertices = 1) out; 5layout(stream=0) out float output1; 6layout(stream=0) out float output2; 7layout(stream=1) out float output3; 8layout(stream=1) out float output4; 9uniform uint stream; 10void main() { 11 12 output1 = 1.0; 13 output2 = 2.0; 14 EmitStreamVertex(0); 15 EndStreamPrimitive(0); 16 output3 = 3.0; 17 output4 = 4.0; 18 EmitStreamVertex(1); 19 EndStreamPrimitive(1); 20}