rename upstream-man-pages to upstream-doc
[clinton/guile-figl.git] / upstream-doc / man4 / glDispatchCompute.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="glDispatchCompute">\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>glDispatchCompute</refentrytitle>\r
13 <manvolnum>3G</manvolnum>\r
14 </refmeta>\r
15 <refnamediv>\r
16 <refname>glDispatchCompute</refname>\r
17 <refpurpose>launch one or more compute work groups</refpurpose>\r
18 </refnamediv>\r
19 <refsynopsisdiv><title>C Specification</title>\r
20 <funcsynopsis>\r
21 <funcprototype>\r
22 <funcdef>void <function>glDispatchCompute</function></funcdef>\r
23 <paramdef>GLuint <parameter>num_groups_x</parameter></paramdef>\r
24 <paramdef>GLuint <parameter>num_groups_y</parameter></paramdef>\r
25 <paramdef>GLuint <parameter>num_groups_z</parameter></paramdef>\r
26 </funcprototype>\r
27 </funcsynopsis>\r
28 </refsynopsisdiv>\r
29 <refsect1 id="parameters"><title>Parameters</title>\r
30 <variablelist>\r
31 <varlistentry>\r
32 <term><parameter>num_groups_x</parameter></term>\r
33 <listitem>\r
34 <para>\r
35 The number of work groups to be launched in the X dimension.\r
36 </para>\r
37 </listitem>\r
38 </varlistentry>\r
39 <varlistentry>\r
40 <term><parameter>num_groups_y</parameter></term>\r
41 <listitem>\r
42 <para>\r
43 The number of work groups to be launched in the Y dimension.\r
44 </para>\r
45 </listitem>\r
46 </varlistentry>\r
47 <varlistentry>\r
48 <term><parameter>num_groups_z</parameter></term>\r
49 <listitem>\r
50 <para>\r
51 The number of work groups to be launched in the Z dimension.\r
52 </para>\r
53 </listitem>\r
54 </varlistentry>\r
55 </variablelist>\r
56 </refsect1>\r
57 <refsect1 id="description"><title>Description</title>\r
58 <para>\r
59 <function>glDispatchCompute</function> launches one or more compute\r
60 work groups. Each work group is processed by the active program object for the compute\r
61 shader stage. While the individual shader invocations within a work group are\r
62 executed as a unit, work groups are executed completely independently and in\r
63 unspecified order. <parameter>num_groups_x</parameter>, <parameter>num_groups_y</parameter>\r
64 and <parameter>num_groups_z</parameter> specify the number of local\r
65 work groups that will be dispatched in the X, Y and Z dimensions, respectively.\r
66 </para>\r
67 </refsect1>\r
68 <refsect1 id="errors"><title>Errors</title>\r
69 <para>\r
70 <constant>GL_INVALID_OPERATION</constant> is generated if there is no active program\r
71 for the compute shader stage.\r
72 </para>\r
73 <para>\r
74 <constant>GL_INVALID_VALUE</constant> is generated if any of <parameter>num_groups_x</parameter>,\r
75 <parameter>num_groups_y</parameter>, or <parameter>num_groups_z</parameter> is greater than or\r
76 equal to the maximum work-group count for the corresponding dimension.\r
77 </para>\r
78 </refsect1>\r
79 <refsect1 id="associatedgets"><title>Associated Gets</title>\r
80 <para>\r
81 <citerefentry><refentrytitle>glGet</refentrytitle></citerefentry> with argument <constant>GL_MAX_COMPUTE_WORK_GROUP_COUNT</constant>\r
82 </para>\r
83 </refsect1>\r
84 <refsect1 id="seealso"><title>See Also</title>\r
85 <para>\r
86 <citerefentry><refentrytitle>glDispatchComputeIndirect</refentrytitle></citerefentry>.\r
87 </para>\r
88 </refsect1>\r
89 <refsect1 id="Copyright"><title>Copyright</title>\r
90 <para>\r
91 Copyright <trademark class="copyright"></trademark> 2012 Khronos Group. \r
92 This material may be distributed subject to the terms and conditions set forth in \r
93 the Open Publication License, v 1.0, 8 June 1999.\r
94 <ulink url="http://opencontent.org/openpub/">http://opencontent.org/openpub/</ulink>.\r
95 </para>\r
96 </refsect1>\r
97</refentry>\r