Commit | Line | Data |
---|---|---|
7faf1d71 AW |
1 | <?xml version="1.0" encoding="UTF-8"?>\r |
2 | <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook MathML Module V1.1b1//EN"\r | |
3 | "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd">\r | |
4 | <refentry id="gl_PrimitiveIDIn">\r | |
5 | <refmeta>\r | |
6 | <refmetainfo>\r | |
7 | <copyright>\r | |
8 | <year>2011</year>\r | |
9 | <holder>Khronos Group</holder>\r | |
10 | </copyright>\r | |
11 | </refmetainfo>\r | |
12 | <refentrytitle>gl_PrimitiveIDIn</refentrytitle>\r | |
13 | <manvolnum>3G</manvolnum>\r | |
14 | </refmeta>\r | |
15 | <refnamediv>\r | |
16 | <refname>gl_PrimitiveIDIn</refname>\r | |
17 | <refpurpose>contains the index of the current primitive</refpurpose>\r | |
18 | </refnamediv>\r | |
19 | <refsynopsisdiv><title>Declaration</title>\r | |
20 | <funcsynopsis>\r | |
21 | <function>in int gl_PrimitiveIDIn;</function>\r | |
22 | </funcsynopsis>\r | |
23 | </refsynopsisdiv>\r | |
24 | <refsect1 id="description"><title>Description</title>\r | |
25 | <para>\r | |
26 | <function>gl_PrimitiveIDIn</function> is a geometry language input variable that holds\r | |
27 | the number of primitives processed by the shader since the current set of rendering\r | |
28 | primitives was started. The first primitive processed by the drawing command is numbered\r | |
29 | zero and the primitive ID counter is incremented after every individual point, line\r | |
30 | or triangle primitive is processed. For triangles drawn in point or line mode, the\r | |
31 | primitive ID counter is incremented only once, even through multiple points or lines\r | |
32 | may actually be drawn. Restarting a primitive topology using the primitive restart\r | |
33 | index has no effect on the primitive ID counter.\r | |
34 | </para>\r | |
35 | </refsect1>\r | |
36 | <refsect1 id="versions"><title>Version Support</title>\r | |
37 | <informaltable frame="topbot">\r | |
38 | <tgroup cols="3" align="left">\r | |
39 | <colspec colwidth="1.1*" />\r | |
40 | <colspec colwidth="1*" align="center" />\r | |
41 | <colspec colwidth="1*" align="center" />\r | |
42 | <colspec colwidth="1*" align="center" />\r | |
43 | <colspec colwidth="1*" align="center" />\r | |
44 | <colspec colwidth="1*" align="center" />\r | |
45 | <colspec colwidth="1*" align="center" />\r | |
46 | <colspec colwidth="1*" align="center" />\r | |
47 | <colspec colwidth="1*" align="center" />\r | |
48 | <thead>\r | |
49 | <row>\r | |
50 | <entry rowsep="1" align="left"><emphasis role="bold">\r | |
51 | Variable\r | |
52 | </emphasis></entry>\r | |
53 | <entry rowsep="1" align="left"><emphasis role="bold">\r | |
54 | Version 1.10\r | |
55 | </emphasis></entry>\r | |
56 | <entry rowsep="1" align="left"><emphasis role="bold">\r | |
57 | Version 1.20\r | |
58 | </emphasis></entry>\r | |
59 | <entry rowsep="1" align="left"><emphasis role="bold">\r | |
60 | Version 1.30\r | |
61 | </emphasis></entry>\r | |
62 | <entry rowsep="1" align="left"><emphasis role="bold">\r | |
63 | Version 1.40\r | |
64 | </emphasis></entry>\r | |
65 | <entry rowsep="1" align="left"><emphasis role="bold">\r | |
66 | Version 1.50\r | |
67 | </emphasis></entry>\r | |
68 | <entry rowsep="1" align="left"><emphasis role="bold">\r | |
69 | Version 3.30\r | |
70 | </emphasis></entry>\r | |
71 | <entry rowsep="1" align="left"><emphasis role="bold">\r | |
72 | Version 4.00\r | |
73 | </emphasis></entry>\r | |
74 | <entry rowsep="1" align="left"><emphasis role="bold">\r | |
75 | Version 4.10\r | |
76 | </emphasis></entry>\r | |
77 | </row>\r | |
78 | <row>\r | |
79 | <entry>\r | |
80 | gl_PrimitiveIDIn\r | |
81 | </entry>\r | |
82 | <entry>\r | |
83 | <emphasis>-</emphasis> <!-- 1.10, OpenGL 2.0 -->\r | |
84 | </entry>\r | |
85 | <entry>\r | |
86 | <emphasis>-</emphasis> <!-- 1.20, OpenGL 2.1 -->\r | |
87 | </entry>\r | |
88 | <entry>\r | |
89 | <emphasis>-</emphasis> <!-- 1.30, OpenGL 3.0 -->\r | |
90 | </entry>\r | |
91 | <entry>\r | |
92 | <emphasis>-</emphasis> <!-- 1.40, OpenGL 3.1 -->\r | |
93 | </entry>\r | |
94 | <entry>\r | |
95 | <emphasis>Y</emphasis> <!-- 1.50, OpenGL 3.2 -->\r | |
96 | </entry>\r | |
97 | <entry>\r | |
98 | <emphasis>Y</emphasis> <!-- 3.30, OpenGL 3.3 -->\r | |
99 | </entry>\r | |
100 | <entry>\r | |
101 | <emphasis>Y</emphasis> <!-- 4.00, OpenGL 4.0 -->\r | |
102 | </entry>\r | |
103 | <entry>\r | |
104 | <emphasis>Y</emphasis> <!-- 4.10, OpenGL 4.1 -->\r | |
105 | </entry>\r | |
106 | </row>\r | |
107 | </thead>\r | |
108 | </tgroup>\r | |
109 | </informaltable>\r | |
110 | </refsect1>\r | |
111 | <refsect1 id="seealso"><title>See Also</title>\r | |
112 | <para>\r | |
113 | <citerefentry><refentrytitle>gl_InstanceID</refentrytitle></citerefentry>\r | |
114 | </para>\r | |
115 | </refsect1>\r | |
116 | <refsect1 id="Copyright"><title>Copyright</title>\r | |
117 | <para>\r | |
118 | Copyright <trademark class="copyright"></trademark> 2011 Khronos Group. \r | |
119 | This material may be distributed subject to the terms and conditions set forth in \r | |
120 | the Open Publication License, v 1.0, 8 June 1999.\r | |
121 | <ulink url="http://opencontent.org/openpub/">http://opencontent.org/openpub/</ulink>.\r | |
122 | </para>\r | |
123 | </refsect1>\r | |
124 | </refentry>\r |