1 2layout (location = 1) out int id; 3int fn_i() { 4 return gl_InstanceID; 5} 6void main() { 7 id = fn_i(); 8} 9