2014-03-28 19:06:55 +00:00
|
|
|
<!DOCTYPE refentry [ <!ENTITY % mathent SYSTEM "math.ent"> %mathent; ]>
|
|
|
|
|
|
|
|
<!-- Converted by db4-upgrade version 1.1 -->
|
|
|
|
|
|
|
|
<refentry xmlns="http://docbook.org/ns/docbook" version="5.0" xml:id="glFenceSync">
|
|
|
|
<info>
|
2013-11-03 11:43:50 +00:00
|
|
|
<copyright>
|
2014-03-28 19:06:55 +00:00
|
|
|
<year>2010-2014</year>
|
2013-11-03 11:43:50 +00:00
|
|
|
<holder>Khronos Group</holder>
|
|
|
|
</copyright>
|
2014-03-28 19:06:55 +00:00
|
|
|
</info>
|
2013-10-10 23:58:54 +00:00
|
|
|
<refmeta>
|
|
|
|
<refentrytitle>glFenceSync</refentrytitle>
|
|
|
|
<manvolnum>3G</manvolnum>
|
|
|
|
</refmeta>
|
|
|
|
<refnamediv>
|
|
|
|
<refname>glFenceSync</refname>
|
|
|
|
<refpurpose>create a new sync object and insert it into the GL command stream</refpurpose>
|
|
|
|
</refnamediv>
|
2014-03-28 19:06:55 +00:00
|
|
|
<refsynopsisdiv>
|
|
|
|
<title>C Specification</title>
|
2013-10-10 23:58:54 +00:00
|
|
|
<funcsynopsis>
|
|
|
|
<funcprototype>
|
|
|
|
<funcdef>GLsync <function>glFenceSync</function></funcdef>
|
|
|
|
<paramdef>GLenum <parameter>condition</parameter></paramdef>
|
|
|
|
<paramdef>GLbitfield <parameter>flags</parameter></paramdef>
|
|
|
|
</funcprototype>
|
|
|
|
</funcsynopsis>
|
|
|
|
</refsynopsisdiv>
|
2014-03-28 19:06:55 +00:00
|
|
|
<refsect1 xml:id="parameters"><title>Parameters</title>
|
2013-10-10 23:58:54 +00:00
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term><parameter>condition</parameter></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Specifies the condition that must be met to set the sync object's state to signaled. <parameter>condition</parameter>
|
|
|
|
must be <constant>GL_SYNC_GPU_COMMANDS_COMPLETE</constant>.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term><parameter>flags</parameter></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Specifies a bitwise combination of flags controlling the behavior of the sync object. No flags are presently defined
|
|
|
|
for this operation and <parameter>flags</parameter> must be zero.<footnote><para>
|
|
|
|
<parameter>flags</parameter> is a placeholder for anticipated future extensions of fence sync object capabilities.
|
|
|
|
</para>
|
|
|
|
</footnote>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</refsect1>
|
2014-03-28 19:06:55 +00:00
|
|
|
<refsect1 xml:id="description"><title>Description</title>
|
2013-10-10 23:58:54 +00:00
|
|
|
<para>
|
|
|
|
<function>glFenceSync</function> creates a new fence sync object, inserts a fence command into the GL command stream and
|
|
|
|
associates it with that sync object, and returns a non-zero name corresponding to the sync object.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
When the specified <parameter>condition</parameter> of the sync object is satisfied by the fence command, the sync object
|
|
|
|
is signaled by the GL, causing any <citerefentry><refentrytitle>glWaitSync</refentrytitle></citerefentry>,
|
|
|
|
<citerefentry><refentrytitle>glClientWaitSync</refentrytitle></citerefentry> commands blocking in <parameter>sync</parameter>
|
|
|
|
to <emphasis>unblock</emphasis>. No other state is affected by <function>glFenceSync</function> or by the execution
|
|
|
|
of the associated fence command.
|
|
|
|
</para>
|
|
|
|
<para>
|
2013-11-03 11:43:50 +00:00
|
|
|
<parameter>condition</parameter> must be <constant>GL_SYNC_GPU_COMMANDS_COMPLETE</constant>. This condition is satisfied by
|
2013-10-10 23:58:54 +00:00
|
|
|
completion of the fence command corresponding to the sync object and all preceding commands in the same command stream.
|
|
|
|
The sync object will not be signaled until all effects from these commands on GL client and server state and the
|
|
|
|
framebuffer are fully realized. Note that completion of the fence command occurs once the state of the corresponding sync
|
|
|
|
object has been changed, but commands waiting on that sync object may not be unblocked until after the fence command completes.
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
2014-03-28 19:06:55 +00:00
|
|
|
<refsect1 xml:id="errors"><title>Errors</title>
|
2013-10-10 23:58:54 +00:00
|
|
|
<para>
|
|
|
|
<constant>GL_INVALID_ENUM</constant> is generated if <parameter>condition</parameter> is not
|
|
|
|
<constant>GL_SYNC_GPU_COMMANDS_COMPLETE</constant>.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
<constant>GL_INVALID_VALUE</constant> is generated if <parameter>flags</parameter> is not zero.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
Additionally, if <function>glFenceSync</function> fails, it will return zero.
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
2014-03-28 19:06:55 +00:00
|
|
|
<refsect1 xml:id="versions">
|
|
|
|
<title>API Version Support</title>
|
|
|
|
<informaltable>
|
|
|
|
<tgroup cols="4" align="left">
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="apifunchead.xml" xpointer="xpointer(/*/*)"/>
|
|
|
|
<tbody>
|
|
|
|
<row>
|
|
|
|
<entry>glFenceSync</entry>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="apiversion.xml" xpointer="xpointer(/*/*[@role='es30']/*)"/>
|
|
|
|
</row>
|
|
|
|
</tbody>
|
|
|
|
</tgroup>
|
|
|
|
</informaltable>
|
|
|
|
</refsect1>
|
|
|
|
<refsect1 xml:id="seealso"><title>See Also</title>
|
2013-10-10 23:58:54 +00:00
|
|
|
<para>
|
|
|
|
<citerefentry><refentrytitle>glDeleteSync</refentrytitle></citerefentry>,
|
2014-03-28 19:06:55 +00:00
|
|
|
<citerefentry><refentrytitle>glGetSynciv</refentrytitle></citerefentry>,
|
2013-10-10 23:58:54 +00:00
|
|
|
<citerefentry><refentrytitle>glWaitSync</refentrytitle></citerefentry>,
|
|
|
|
<citerefentry><refentrytitle>glClientWaitSync</refentrytitle></citerefentry>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
2014-03-28 19:06:55 +00:00
|
|
|
<refsect1 xml:id="Copyright"><title>Copyright</title>
|
2013-10-10 23:58:54 +00:00
|
|
|
<para>
|
2014-03-28 19:06:55 +00:00
|
|
|
Copyright <trademark class="copyright"/> 2010-2014 Khronos Group.
|
2013-11-03 11:43:50 +00:00
|
|
|
This material may be distributed subject to the terms and conditions set forth in
|
2013-10-10 23:58:54 +00:00
|
|
|
the Open Publication License, v 1.0, 8 June 1999.
|
2014-03-28 19:06:55 +00:00
|
|
|
<link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://opencontent.org/openpub/">http://opencontent.org/openpub/</link>.
|
2013-10-10 23:58:54 +00:00
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|