GL_INSTANCEID(3G)

πŸŽ€ GL_INSTANCEID β€” 3G manual page πŸŽ€

okay bestie, quick vibe check: the header has a lil [FIXME: manual] placeholder, and this is the 3G manual page. slay, let's get into it πŸ’…


🌸 NAME 🌸

gl_InstanceID β€” contains the index of the current primitive in an instanced draw command. periodt ✨


πŸ’… DECLARATION πŸ’…

in int gl_InstanceID ;

✨ DESCRIPTION ✨

gl_InstanceID is a vertex language input variable that holds the integer index of the current primitive in an instanced draw command such as glDrawArraysInstanced.

If the current primitive does not originate from an instanced draw command, the value of gl_InstanceID is zero. no cap 🫢


🌈 VERSION SUPPORT 🌈

Variable Name: gl_InstanceID

OpenGL Shading Language Version support, bestie β€” here's the whole list so nobody gets left on read:

  • 1.10 β€” -
  • 1.20 β€” -
  • 1.30 β€” -
  • 1.40 β€” βœ”
  • 1.50 β€” βœ”
  • 3.30 β€” βœ”
  • 4.00 β€” βœ”
  • 4.10 β€” βœ”
  • 4.20 β€” βœ”
  • 4.30 β€” βœ”
  • 4.40 β€” βœ”
  • 4.50 β€” βœ”

πŸ¦‹ SEE ALSO πŸ¦‹

gl_VertexID() β€” go check that one out too, iykyk πŸ’œ


Copyright Β© 2011-2014 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.


Copyright Β© 2011-2014 Khronos Group


okay that's the whole page, bestie πŸ’– β€” source/version: [FIXME: source], dated 08/09/2021, and it's the GL_INSTANCEID(3G) page. byeee 🫢✨
πŸ“¦ where this page comes from