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="glPushDebugGroup">\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>glPushDebugGroup</refentrytitle>\r | |
13 | <manvolnum>3G</manvolnum>\r | |
14 | </refmeta>\r | |
15 | <refnamediv>\r | |
16 | <refname>glPushDebugGroup</refname>\r | |
17 | <refpurpose>push a named debug group into the command stream</refpurpose>\r | |
18 | </refnamediv>\r | |
19 | <refsynopsisdiv><title>C Specification</title>\r | |
20 | <funcsynopsis>\r | |
21 | <funcprototype>\r | |
22 | <funcdef>void <function>glPushDebugGroup</function></funcdef>\r | |
23 | <paramdef>GLenum <parameter>source</parameter></paramdef>\r | |
24 | <paramdef>GLuint <parameter>id</parameter></paramdef>\r | |
25 | <paramdef>GLsizei <parameter>length</parameter></paramdef>\r | |
26 | <paramdef>const char * <parameter>message</parameter></paramdef>\r | |
27 | </funcprototype>\r | |
28 | </funcsynopsis>\r | |
29 | </refsynopsisdiv>\r | |
30 | <refsect1 id="parameters"><title>Parameters</title>\r | |
31 | <variablelist>\r | |
32 | <varlistentry>\r | |
33 | <term><parameter>source</parameter></term>\r | |
34 | <listitem>\r | |
35 | <para>\r | |
36 | The source of the debug message.\r | |
37 | </para>\r | |
38 | </listitem>\r | |
39 | </varlistentry>\r | |
40 | <varlistentry>\r | |
41 | <term><parameter>id</parameter></term>\r | |
42 | <listitem>\r | |
43 | <para>\r | |
44 | The identifier of the message.\r | |
45 | </para>\r | |
46 | </listitem>\r | |
47 | </varlistentry>\r | |
48 | <varlistentry>\r | |
49 | <term><parameter>length</parameter></term>\r | |
50 | <listitem>\r | |
51 | <para>\r | |
52 | The length of the message to be sent to the debug output stream.\r | |
53 | </para>\r | |
54 | </listitem>\r | |
55 | </varlistentry>\r | |
56 | <varlistentry>\r | |
57 | <term><parameter>message</parameter></term>\r | |
58 | <listitem>\r | |
59 | <para>\r | |
60 | The a string containing the message to be sent to the debug output stream.\r | |
61 | </para>\r | |
62 | </listitem>\r | |
63 | </varlistentry>\r | |
64 | </variablelist>\r | |
65 | </refsect1>\r | |
66 | <refsect1 id="description"><title>Description</title>\r | |
67 | <para>\r | |
68 | <function>glPushDebugGroup</function> pushes a debug group described by the string\r | |
69 | <parameter>message</parameter> into the command stream. The value of\r | |
70 | <parameter>id</parameter> specifies the ID of messages generated. The parameter\r | |
71 | <parameter>length</parameter> contains the number of characters in <parameter>message</parameter>.\r | |
72 | If <parameter>length</parameter> is negative, it is implied that <parameter>message</parameter>\r | |
73 | contains a null terminated string. The message has the specified <parameter>source</parameter> \r | |
74 | and <parameter>id</parameter>, the <parameter>type</parameter> <constant>GL_DEBUG_TYPE_PUSH_GROUP</constant>, and <parameter>severity</parameter>\r | |
75 | <constant>GL_DEBUG_SEVERITY_NOTIFICATION</constant>. The GL will put a new debug group\r | |
76 | on top of the debug group stack which inherits the control of the\r | |
77 | volume of debug output of the debug group previously residing on the\r | |
78 | top of the debug group stack. Because debug groups are strictly\r | |
79 | hierarchical, any additional control of the debug output volume will\r | |
80 | only apply within the active debug group and the debug groups pushed\r | |
81 | on top of the active debug group.\r | |
82 | </para>\r | |
83 | </refsect1>\r | |
84 | <refsect1 id="errors"><title>Errors</title>\r | |
85 | <para>\r | |
86 | <constant>GL_INVALID_ENUM</constant> is generated if the value of <parameter>source</parameter> is\r | |
87 | neither <constant>GL_DEBUG_SOURCE_APPLICATION</constant> nor <constant>GL_DEBUG_SOURCE_THIRD_PARTY</constant>.\r | |
88 | </para>\r | |
89 | <para>\r | |
90 | <constant>GL_INVALID_VALUE</constant> is generated if <parameter>length</parameter> is negative\r | |
91 | and the number of characters in <parameter>message</parameter>, excluding the null-terminator,\r | |
92 | is not less than the value of <constant>GL_MAX_DEBUG_MESSAGE_LENGTH</constant>.\r | |
93 | </para>\r | |
94 | </refsect1>\r | |
95 | <refsect1 id="associatedgets"><title>Associated Gets</title>\r | |
96 | <para>\r | |
97 | <citerefentry><refentrytitle>glGet</refentrytitle></citerefentry> with argument <constant>GL_MAX_DEBUG_MESSAGE_LENGTH</constant>.\r | |
98 | </para>\r | |
99 | </refsect1>\r | |
100 | <refsect1 id="seealso"><title>See Also</title>\r | |
101 | <para>\r | |
102 | <citerefentry><refentrytitle>glPopDebugGroup</refentrytitle></citerefentry>,\r | |
103 | <citerefentry><refentrytitle>glObjectLabel</refentrytitle></citerefentry>,\r | |
104 | <citerefentry><refentrytitle>glObjectPtrLabel</refentrytitle></citerefentry>.\r | |
105 | </para>\r | |
106 | </refsect1>\r | |
107 | <refsect1 id="Copyright"><title>Copyright</title>\r | |
108 | <para>\r | |
109 | Copyright <trademark class="copyright"></trademark> 2012 Khronos Group. \r | |
110 | This material may be distributed subject to the terms and conditions set forth in \r | |
111 | the Open Publication License, v 1.0, 8 June 1999.\r | |
112 | <ulink url="http://opencontent.org/openpub/">http://opencontent.org/openpub/</ulink>.\r | |
113 | </para>\r | |
114 | </refsect1>\r | |
115 | </refentry>\r |