rename upstream-man-pages to upstream-doc
[clinton/guile-figl.git] / upstream-doc / manglsl / gl_SampleMaskIn.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="gl_SampleMaskIn">\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_SampleMaskIn</refentrytitle>\r
13 <manvolnum>3G</manvolnum>\r
14 </refmeta>\r
15 <refnamediv>\r
16 <refname>gl_SampleMaskIn</refname>\r
17 <refpurpose>contains the computed sample coverage mask for the current fragment</refpurpose>\r
18 </refnamediv>\r
19 <refsynopsisdiv><title>Declaration</title>\r
20 <funcsynopsis>\r
21 <function>in int gl_SampleMaskIn[];</function>\r
22 </funcsynopsis>\r
23 </refsynopsisdiv>\r
24 <refsect1 id="description"><title>Description</title>\r
25 <para>\r
26 <function>gl_SampleMaskIn</function> is a fragment language that indicates the\r
27 set of samples covered by the primitive generating the fragment during\r
28 multisample rasterization. It has a sample bit set if and only if the sample\r
29 is considered covered for this fragment shader invocation. Bit\r
30 <emphasis>B</emphasis> of mask <function>gl_SampleMask[M]</function>\r
31 corresponds to sample 32 * <emphasis>M</emphasis> + <emphasis>B</emphasis>.\r
32 The array has <function>ceil</function>(<emphasis>s</emphasis> / 32) elements\r
33 where <emphasis>s</emphasis> is the maximum number of color samples supported\r
34 by the implementation.\r
35 </para>\r
36 </refsect1>\r
37 <refsect1 id="versions"><title>Version Support</title>\r
38 <informaltable frame="topbot">\r
39 <tgroup cols="10" align="left">\r
40 <colspec colwidth="1.1*" />\r
41 <colspec colwidth="1*" align="center" />\r
42 <colspec colwidth="1*" align="center" />\r
43 <colspec colwidth="1*" align="center" />\r
44 <colspec colwidth="1*" align="center" />\r
45 <colspec colwidth="1*" align="center" />\r
46 <colspec colwidth="1*" align="center" />\r
47 <colspec colwidth="1*" align="center" />\r
48 <colspec colwidth="1*" align="center" />\r
49 <colspec colwidth="1*" align="center" />\r
50 <thead>\r
51 #VARTABLEHEADER#\r
52 <row>\r
53 <entry>\r
54 gl_SampleMaskIn\r
55 </entry>\r
56 #newin40#\r
57 </row>\r
58 </thead>\r
59 </tgroup>\r
60 </informaltable>\r
61 </refsect1>\r
62 <refsect1 id="seealso"><title>See Also</title>\r
63 <para>\r
64 <citerefentry><refentrytitle>gl_SampleMask</refentrytitle></citerefentry>,\r
65 <citerefentry><refentrytitle>gl_SampleID</refentrytitle></citerefentry>,\r
66 <citerefentry><refentrytitle>gl_SamplePosition</refentrytitle></citerefentry>,\r
67 <citerefentry><refentrytitle>gl_FragCoord</refentrytitle></citerefentry>\r
68 </para>\r
69 </refsect1>\r
70 <refsect1 id="Copyright"><title>Copyright</title>\r
71 <para>\r
72 Copyright <trademark class="copyright"></trademark> 2011 Khronos Group. \r
73 This material may be distributed subject to the terms and conditions set forth in \r
74 the Open Publication License, v 1.0, 8 June 1999.\r
75 <ulink url="http://opencontent.org/openpub/">http://opencontent.org/openpub/</ulink>.\r
76 </para>\r
77 </refsect1>\r
78</refentry>\r