bionic (3) gl_PrimitiveIDIn.3G.gz

Provided by: opengl-4-man-doc_1.0~svn33624-1_all bug

NAME

       gl_PrimitiveIDIn - contains the index of the current primitive

DECLARATION

       in int gl_PrimitiveIDIn ;.SH "DESCRIPTION"

       gl_PrimitiveIDIn is a geometry language input variable that holds the number of primitives processed by
       the shader since the current set of rendering primitives was started. The first primitive processed by
       the drawing command is numbered zero and the primitive ID counter is incremented after every individual
       point, line or triangle primitive is processed. For triangles drawn in point or line mode, the primitive
       ID counter is incremented only once, even through multiple points or lines may actually be drawn.
       Restarting a primitive topology using the primitive restart index has no effect on the primitive ID
       counter.

VERSION SUPPORT

       ┌─────────────────┬───────────────────────────────────────────────────────────────────────────────────┐
       │                 │        OpenGL Shading Language Version                                            │
       ├─────────────────┼──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┤
       │Variable1.101.201.301.401.503.304.004.104.204.304.404.50 │
       │Name             │      │      │      │      │      │      │      │      │      │      │      │      │
       ├─────────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
       │gl_PrimitiveIDIn │  -   │  -   │  -   │  -   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │
       └─────────────────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┘

SEE ALSO

       gl_InstanceID()

       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

[FIXME: source]                                    01/03/2018                               GL_PRIMITIVEIDIN(3G)