Commit | Line | Data |
---|---|---|
7faf1d71 AW |
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="glMinSampleShading"> | |
5 | <refmeta> | |
6 | <refmetainfo> | |
7 | <copyright> | |
8 | <year>2010</year> | |
9 | <holder>Khronos Group.</holder> | |
10 | </copyright> | |
11 | </refmetainfo> | |
12 | <refentrytitle>glMinSampleShading</refentrytitle> | |
13 | <manvolnum>3G</manvolnum> | |
14 | </refmeta> | |
15 | <refnamediv> | |
16 | <refname>glMinSampleShading</refname> | |
17 | <refpurpose>specifies minimum rate at which sample shaing takes place</refpurpose> | |
18 | </refnamediv> | |
19 | <refsynopsisdiv><title>C Specification</title> | |
20 | <funcsynopsis> | |
21 | <funcprototype> | |
22 | <funcdef>void <function>glMinSampleShading</function></funcdef> | |
23 | <paramdef>GLfloat <parameter>value</parameter></paramdef> | |
24 | </funcprototype> | |
25 | </funcsynopsis> | |
26 | </refsynopsisdiv> | |
27 | <!-- eqn: ignoring delim $$ --> | |
28 | <refsect1 id="parameters"><title>Parameters</title> | |
29 | <variablelist> | |
30 | <varlistentry> | |
31 | <term><parameter>value</parameter></term> | |
32 | <listitem> | |
33 | <para> | |
34 | Specifies the rate at which samples are shaded within each covered pixel. | |
35 | </para> | |
36 | </listitem> | |
37 | </varlistentry> | |
38 | </variablelist> | |
39 | </refsect1> | |
40 | <refsect1 id="description"><title>Description</title> | |
41 | <para> | |
42 | <function>glMinSampleShading</function> specifies the rate at which samples are shaded within | |
43 | a covered pixel. Sample-rate shading is enabled by calling <citerefentry><refentrytitle>glEnable</refentrytitle></citerefentry> | |
44 | with the parameter <constant>GL_SAMPLE_SHADING</constant>. If <constant>GL_MULTISAMPLE</constant> | |
45 | or <constant>GL_SAMPLE_SHADING</constant> is disabled, sample shading has no effect. | |
46 | Otherwise, an implementation must provide at least as many unique color values for | |
47 | each covered fragment as specified by <parameter>value</parameter> times <parameter>samples</parameter> where | |
48 | <parameter>samples</parameter> is the value of <constant>GL_SAMPLES</constant> for the current | |
49 | framebuffer. At least 1 sample for each covered fragment is generated. | |
50 | </para> | |
51 | <para> | |
52 | A <parameter>value</parameter> of 1.0 indicates that each sample in the framebuffer should be | |
53 | indpendently shaded. A <parameter>value</parameter> of 0.0 effectively allows the GL to ignore | |
54 | sample rate shading. Any value between 0.0 and 1.0 allows the GL to shade only a subset | |
55 | of the total samples within each covered fragment. Which samples are shaded and the algorithm | |
56 | used to select that subset of the fragment's samples is implementation dependent. | |
57 | </para> | |
58 | </refsect1> | |
59 | <refsect1 id="notes"><title>Notes</title> | |
60 | <para> | |
61 | The type of the <parameter>value</parameter> parameter was | |
62 | changed from GLclampf to GLfloat. This change is transparent | |
63 | to user code and is described in detail on the | |
64 | <citerefentry><refentrytitle>removedTypes</refentrytitle></citerefentry> | |
65 | page. | |
66 | </para> | |
67 | </refsect1> | |
68 | <refsect1 id="errors"><title>Errors</title> | |
69 | <para> | |
70 | None. | |
71 | </para> | |
72 | </refsect1> | |
73 | <refsect1 id="associatedgets"><title>Associated Gets</title> | |
74 | <para> | |
75 | <citerefentry><refentrytitle>glGet</refentrytitle></citerefentry> with argument <constant>GL_MIN_SAMPLE_SHADING</constant>. | |
76 | </para> | |
77 | <para> | |
78 | <citerefentry><refentrytitle>glGet</refentrytitle></citerefentry> with argument <constant>GL_SAMPLES</constant>. | |
79 | </para> | |
80 | </refsect1> | |
81 | <refsect1 id="seealso"><title>See Also</title> | |
82 | <para> | |
83 | <citerefentry><refentrytitle>removedTypes</refentrytitle></citerefentry> | |
84 | </para> | |
85 | </refsect1> | |
86 | <refsect1 id="Copyright"><title>Copyright</title> | |
87 | <para> | |
88 | Copyright <trademark class="copyright"></trademark> 2011 Khronos Group. | |
89 | This material may be distributed subject to the terms and conditions set forth in | |
90 | the Open Publication License, v 1.0, 8 June 1999. | |
91 | <ulink url="http://opencontent.org/openpub/">http://opencontent.org/openpub/</ulink>. | |
92 | </para> | |
93 | </refsect1> | |
94 | </refentry> |