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_NumSamples">
9 <holder>Khronos Group</holder>
12 <refentrytitle>gl_NumSamples</refentrytitle>
13 <manvolnum>3G</manvolnum>
16 <refname>gl_NumSamples</refname>
17 <refpurpose>contains the total number of samples in the framebuffer</refpurpose>
19 <refsynopsisdiv><title>Declaration</title>
21 <function>in int gl_NumSamples;</function>
24 <refsect1 id="description"><title>Description</title>
26 <function>gl_NumSamples</function> is a fragment language input variable that contains
27 the number of samples in the framebuffer, or 1 if rendering to a non-multisample framebuffer.
28 <function>gl_NumSamples</function> is the sample count of the framebuffer regardless
29 of whether multisample rasterization is enabled or not.
32 <refsect1 id="versions"><title>Version Support</title>
33 <informaltable frame="topbot">
34 <tgroup cols="3" align="left">
35 <colspec colwidth="1.1*" />
36 <colspec colwidth="1*" align="center" />
37 <colspec colwidth="1*" align="center" />
38 <colspec colwidth="1*" align="center" />
39 <colspec colwidth="1*" align="center" />
40 <colspec colwidth="1*" align="center" />
41 <colspec colwidth="1*" align="center" />
42 <colspec colwidth="1*" align="center" />
43 <colspec colwidth="1*" align="center" />
46 <entry rowsep="1" align="left"><emphasis role="bold">
49 <entry rowsep="1" align="left"><emphasis role="bold">
52 <entry rowsep="1" align="left"><emphasis role="bold">
55 <entry rowsep="1" align="left"><emphasis role="bold">
58 <entry rowsep="1" align="left"><emphasis role="bold">
61 <entry rowsep="1" align="left"><emphasis role="bold">
64 <entry rowsep="1" align="left"><emphasis role="bold">
67 <entry rowsep="1" align="left"><emphasis role="bold">
70 <entry rowsep="1" align="left"><emphasis role="bold">
79 <emphasis>-</emphasis> <!-- 1.10, OpenGL 2.0 -->
82 <emphasis>-</emphasis> <!-- 1.20, OpenGL 2.1 -->
85 <emphasis>-</emphasis> <!-- 1.30, OpenGL 3.0 -->
88 <emphasis>-</emphasis> <!-- 1.40, OpenGL 3.1 -->
91 <emphasis>-</emphasis> <!-- 1.50, OpenGL 3.2 -->
94 <emphasis>-</emphasis> <!-- 3.30, OpenGL 3.3 -->
97 <emphasis>Y</emphasis> <!-- 4.00, OpenGL 4.0 -->
100 <emphasis>Y</emphasis> <!-- 4.10, OpenGL 4.1 -->
107 <refsect1 id="seealso"><title>See Also</title>
109 <citerefentry><refentrytitle>gl_SamplePosition</refentrytitle></citerefentry>,
110 <citerefentry><refentrytitle>gl_SampleID</refentrytitle></citerefentry>
113 <refsect1 id="Copyright"><title>Copyright</title>
115 Copyright <trademark class="copyright"></trademark> 2011 Khronos Group.
116 This material may be distributed subject to the terms and conditions set forth in
117 the Open Publication License, v 1.0, 8 June 1999.
118 <ulink url="http://opencontent.org/openpub/">http://opencontent.org/openpub/</ulink>.