layout(location=1) out int id; void main() { id = sk_InstanceID; }