rename upstream-man-pages to upstream-doc
[clinton/guile-figl.git] / upstream-doc / manglsl / gl_LocalInvocationIndex.xml
CommitLineData
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_LocalInvocationIndex">\r
5 <refmeta>\r
6 <refmetainfo>\r
7 <copyright>\r
8 <year>2012</year>\r
9 <holder>Khronos Group</holder>\r
10 </copyright>\r
11 </refmetainfo>\r
12 <refentrytitle>gl_LocalInvocationIndex</refentrytitle>\r
13 <manvolnum>3G</manvolnum>\r
14 </refmeta>\r
15 <refnamediv>\r
16 <refname>gl_LocalInvocationIndex</refname>\r
17 <refpurpose>contains the local linear index of work item currently being operated on by a compute shader</refpurpose>\r
18 </refnamediv>\r
19 <refsynopsisdiv><title>Declaration</title>\r
20 <funcsynopsis>\r
21 <function>in uint gl_LocalInvocationIndex</function>\r
22 </funcsynopsis>\r
23 </refsynopsisdiv>\r
24 <refsect1 id="description"><title>Description</title>\r
25 <para>\r
26 In the compute language, <function>gl_LocalInvocationIndex</function>\r
27 is a derived input variable containing the 1-dimensional linearized index of the\r
28 work invocation within the work group that the current shader is\r
29 executing on. The value of <function>gl_LocalInvocationIndex</function> is equal to\r
30 <function>gl_LocalInvocationID.z</function> * <function>gl_WorkGroupSize.x</function> * <function>gl_WorkGroupSize.y</function> + \r
31 <function>gl_LocalInvocationID.y</function> * <function>gl_WorkGroupSize.x</function> + \r
32 <function>gl_LocalInvocationID.x</function>.\r
33 </para>\r
34 </refsect1>\r
35 <refsect1 id="versions"><title>Version Support</title>\r
36 <informaltable frame="topbot">\r
37 #VARTABLECOLS#\r
38 <thead>\r
39 #VARTABLEHEADER#\r
40 <row>\r
41 <entry>gl_LocalInvocationIndex</entry>#newin43#\r
42 </row>\r
43 </thead>\r
44 </tgroup>\r
45 </informaltable>\r
46 </refsect1>\r
47 <refsect1 id="seealso"><title>See Also</title>\r
48 <para>\r
49 <citerefentry><refentrytitle>gl_NumWorkGroups</refentrytitle></citerefentry>,\r
50 <citerefentry><refentrytitle>gl_WorkGroupID</refentrytitle></citerefentry>,\r
51 <citerefentry><refentrytitle>gl_WorkGroupSize</refentrytitle></citerefentry>,\r
52 <citerefentry><refentrytitle>gl_LocalInvocationID</refentrytitle></citerefentry>\r
53 </para>\r
54 </refsect1>\r
55 <refsect1 id="Copyright"><title>Copyright</title>\r
56 <para>\r
57 Copyright <trademark class="copyright"></trademark> 2011-2012 Khronos Group. \r
58 This material may be distributed subject to the terms and conditions set forth in \r
59 the Open Publication License, v 1.0, 8 June 1999.\r
60 <ulink url="http://opencontent.org/openpub/">http://opencontent.org/openpub/</ulink>.\r
61 </para>\r
62 </refsect1>\r
63</refentry>\r