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="gl_FragDepth">\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>gl_FragDepth</refentrytitle>\r | |
13 | <manvolnum>3G</manvolnum>\r | |
14 | </refmeta>\r | |
15 | <refnamediv>\r | |
16 | <refname>gl_FragDepth</refname>\r | |
17 | <refpurpose>establishes a depth value for the current fragment</refpurpose>\r | |
18 | </refnamediv>\r | |
19 | <refsynopsisdiv><title>Declaration</title>\r | |
20 | <funcsynopsis>\r | |
21 | <function>out float gl_FragDepth;</function>\r | |
22 | </funcsynopsis>\r | |
23 | </refsynopsisdiv>\r | |
24 | <refsect1 id="description"><title>Description</title>\r | |
25 | <para>\r | |
26 | Available only in the fragment language, <function>gl_FragDepth</function> is an output variable\r | |
27 | that is used to establish the depth value for the current fragment. If depth buffering is enabled\r | |
28 | and no shader writes to <function>gl_FragDepth</function>, then the fixed function value for\r | |
29 | depth will be used (this value is contained in the z component of <citerefentry><refentrytitle>gl_FragCoord</refentrytitle></citerefentry>)\r | |
30 | otherwise, the value written to <function>gl_FragDepth</function> is used.\r | |
31 | If a shader statically assigns to <function>gl_FragDepth</function>, then the value of the fragment's depth\r | |
32 | may be undefined for executions of the shader that take that path. That is, if the set of linked fragment\r | |
33 | shaders statically contain a write to <function>gl_FragDepth</function>, then it is responsible for always\r | |
34 | writing it.\r | |
35 | </para>\r | |
36 | </refsect1>\r | |
37 | <refsect1 id="versions"><title>Version Support</title>\r | |
38 | <informaltable frame="topbot">\r | |
39 | #VARTABLECOLS#\r | |
40 | <thead>\r | |
41 | #VARTABLEHEADER#\r | |
42 | <row>\r | |
43 | <entry>gl_FragDepth</entry>#newin11#\r | |
44 | </row>\r | |
45 | </thead>\r | |
46 | </tgroup>\r | |
47 | </informaltable>\r | |
48 | </refsect1>\r | |
49 | <refsect1 id="seealso"><title>See Also</title>\r | |
50 | <para>\r | |
51 | <citerefentry><refentrytitle>gl_FragCoord</refentrytitle></citerefentry>\r | |
52 | </para>\r | |
53 | </refsect1>\r | |
54 | <refsect1 id="Copyright"><title>Copyright</title>\r | |
55 | <para>\r | |
56 | Copyright <trademark class="copyright"></trademark> 2011 Khronos Group. \r | |
57 | This material may be distributed subject to the terms and conditions set forth in \r | |
58 | the Open Publication License, v 1.0, 8 June 1999.\r | |
59 | <ulink url="http://opencontent.org/openpub/">http://opencontent.org/openpub/</ulink>.\r | |
60 | </para>\r | |
61 | </refsect1>\r | |
62 | </refentry>\r |