rename upstream-man-pages to upstream-doc
[clinton/guile-figl.git] / upstream-doc / manglsl / memoryBarrier.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="memoryBarrier">\r
5 <refmeta>\r
6 <refmetainfo>\r
7 <copyright>\r
8 <year>2011</year>\r
9 <holder>Khronos Group</holder>\r
10 </copyright>\r
11 </refmetainfo>\r
12 <refentrytitle>memoryBarrier</refentrytitle>\r
13 <manvolnum>3G</manvolnum>\r
14 </refmeta>\r
15 <refnamediv>\r
16 <refname>memoryBarrier</refname>\r
17 <refpurpose>controls the ordering of memory transactions 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>uint <function>memoryBarrier</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>memoryBarrier</function> waits on the completion of all memory accesses resulting from the use of\r
30 image variables or atomic counters and then returns with no other effect. When this function returns, the\r
31 results of any memory stores performed using coherent variables performed prior to the call will be visible\r
32 to any future coherent memory access to the same addresses from other shader invocations. In particular,\r
33 the values written this way in one shader stage are guaranteed to be visible to coherent memory 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>memoryBarrier</entry>#newin40#\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>imageLoad</refentrytitle></citerefentry>,\r
54 <citerefentry><refentrytitle>imageStore</refentrytitle></citerefentry>,\r
55 <citerefentry><refentrytitle>imageAtomicAdd</refentrytitle></citerefentry>,\r
56 <citerefentry><refentrytitle>imageAtomicMin</refentrytitle></citerefentry>,\r
57 <citerefentry><refentrytitle>imageAtomicMax</refentrytitle></citerefentry>,\r
58 <citerefentry><refentrytitle>imageAtomicXor</refentrytitle></citerefentry>,\r
59 <citerefentry><refentrytitle>imageAtomicOr</refentrytitle></citerefentry>,\r
60 <citerefentry><refentrytitle>imageAtomicAnd</refentrytitle></citerefentry>,\r
61 <citerefentry><refentrytitle>imageAtomicExchange</refentrytitle></citerefentry>,\r
62 <citerefentry><refentrytitle>imageAtomicCompSwap</refentrytitle></citerefentry>,\r
63 <citerefentry><refentrytitle>memoryBarrier</refentrytitle></citerefentry>\r
64 </para>\r
65 </refsect1>\r
66 <refsect1 id="Copyright"><title>Copyright</title>\r
67 <para>\r
68 Copyright <trademark class="copyright"></trademark> 2011 Khronos Group. \r
69 This material may be distributed subject to the terms and conditions set forth in \r
70 the Open Publication License, v 1.0, 8 June 1999.\r
71 <ulink url="http://opencontent.org/openpub/">http://opencontent.org/openpub/</ulink>.\r
72 </para>\r
73 </refsect1>\r
74</refentry>\r