1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <!DOCTYPE book PUBLIC
"-//OASIS//DTD DocBook MathML Module V1.1b1//EN"
3 "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd">
4 <refentry id=
"gl_SampleMaskIn">
9 <holder>Khronos Group
</holder>
12 <refentrytitle>gl_SampleMaskIn
</refentrytitle>
13 <manvolnum>3G
</manvolnum>
16 <refname>gl_SampleMaskIn
</refname>
17 <refpurpose>contains the computed sample coverage mask for the current fragment
</refpurpose>
19 <refsynopsisdiv><title>Declaration
</title>
21 <function>in int gl_SampleMaskIn[];
</function>
24 <refsect1 id=
"description"><title>Description
</title>
26 <function>gl_SampleMaskIn
</function> is a fragment language that indicates the
27 set of samples covered by the primitive generating the fragment during
28 multisample rasterization. It has a sample bit set if and only if the sample
29 is considered covered for this fragment shader invocation. Bit
30 <emphasis>B
</emphasis> of mask
<function>gl_SampleMask[M]
</function>
31 corresponds to sample
32 *
<emphasis>M
</emphasis> +
<emphasis>B
</emphasis>.
32 The array has
<function>ceil
</function>(
<emphasis>s
</emphasis> /
32) elements
33 where
<emphasis>s
</emphasis> is the maximum number of color samples supported
34 by the implementation.
37 <refsect1 id=
"versions"><title>Version Support
</title>
38 <informaltable frame=
"topbot">
39 <tgroup cols=
"10" align=
"left">
40 <colspec colwidth=
"1.1*" />
41 <colspec colwidth=
"1*" align=
"center" />
42 <colspec colwidth=
"1*" align=
"center" />
43 <colspec colwidth=
"1*" align=
"center" />
44 <colspec colwidth=
"1*" align=
"center" />
45 <colspec colwidth=
"1*" align=
"center" />
46 <colspec colwidth=
"1*" align=
"center" />
47 <colspec colwidth=
"1*" align=
"center" />
48 <colspec colwidth=
"1*" align=
"center" />
49 <colspec colwidth=
"1*" align=
"center" />
62 <refsect1 id=
"seealso"><title>See Also
</title>
64 <citerefentry><refentrytitle>gl_SampleMask
</refentrytitle></citerefentry>,
65 <citerefentry><refentrytitle>gl_SampleID
</refentrytitle></citerefentry>,
66 <citerefentry><refentrytitle>gl_SamplePosition
</refentrytitle></citerefentry>,
67 <citerefentry><refentrytitle>gl_FragCoord
</refentrytitle></citerefentry>
70 <refsect1 id=
"Copyright"><title>Copyright
</title>
72 Copyright
<trademark class=
"copyright"></trademark> 2011 Khronos Group.
73 This material may be distributed subject to the terms and conditions set forth in
74 the Open Publication License, v
1.0,
8 June
1999.
75 <ulink url=
"http://opencontent.org/openpub/">http://opencontent.org/openpub/
</ulink>.