rename upstream-man-pages to upstream-doc
[clinton/guile-figl.git] / upstream-doc / manglsl / memoryBarrierBuffer.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="memoryBarrierBuffer">\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>memoryBarrierBuffer</refentrytitle>\r
13 <manvolnum>3G</manvolnum>\r
14 </refmeta>\r
15 <refnamediv>\r
16 <refname>memoryBarrierBuffer</refname>\r
17 <refpurpose>controls the ordering of operations on buffer variables issued by a single shader invocation</refpurpose>\r
18 </refnamediv>\r
19 <refsynopsisdiv><title>Declaration</title>\r
20 <funcsynopsis>\r
21 <funcprototype>\r
22 <funcdef>void <function>memoryBarrierBuffer</function></funcdef>\r
23 <paramdef>void</paramdef>\r
24 </funcprototype>\r
25 </funcsynopsis>\r
26 </refsynopsisdiv>\r
27 <refsect1 id="description"><title>Description</title>\r
28 <para>\r
29 <function>memoryBarrierBuffer</function> waits on the completion of all memory accesses resulting\r
30 from the use of buffer variables and then returns with no other effect. When this function returns, the\r
31 results of any modifications to the content of buffer variables will be visible\r
32 to any access to the same buffer from other shader invocations. In particular,\r
33 any modifications made in one shader stage are guaranteed to be visible to accesses\r
34 performed by shader invocations in subsequent stages when those invocations were triggered by the\r
35 execution of the original shader invocation (e.g., fragment shader invocations for a primitive resulting\r
36 from a particular geometry shader invocation).\r
37 </para>\r
38 </refsect1>\r
39 <refsect1 id="versions"><title>Version Support</title>\r
40 <informaltable frame="topbot">\r
41 #VARTABLECOLS#\r
42 <thead>\r
43 #FUNCTABLEHEADER#\r
44 <row>\r
45 <entry>memoryBarrierBuffer</entry>#newin43#\r
46 </row>\r
47 </thead>\r
48 </tgroup>\r
49 </informaltable>\r
50 </refsect1>\r
51 <refsect1 id="seealso"><title>See Also</title>\r
52 <para>\r
53 <citerefentry><refentrytitle>memoryBarrier</refentrytitle></citerefentry>,\r
54 <citerefentry><refentrytitle>memoryBarrierImage</refentrytitle></citerefentry>,\r
55 <citerefentry><refentrytitle>memoryBarrierShared</refentrytitle></citerefentry>,\r
56 <citerefentry><refentrytitle>groupMemoryBarrier</refentrytitle></citerefentry>\r
57 </para>\r
58 </refsect1>\r
59 <refsect1 id="Copyright"><title>Copyright</title>\r
60 <para>\r
61 Copyright <trademark class="copyright"></trademark> 2011-2012 Khronos Group. \r
62 This material may be distributed subject to the terms and conditions set forth in \r
63 the Open Publication License, v 1.0, 8 June 1999.\r
64 <ulink url="http://opencontent.org/openpub/">http://opencontent.org/openpub/</ulink>.\r
65 </para>\r
66 </refsect1>\r
67</refentry>\r