rename upstream-man-pages to upstream-doc
[clinton/guile-figl.git] / upstream-doc / manglsl / textureProjLod.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="textureProjLod">\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>textureProjLod</refentrytitle>\r
13 <manvolnum>3G</manvolnum>\r
14 </refmeta>\r
15 <refnamediv>\r
16 <refname>textureProjLod</refname>\r
17 <refpurpose>perform a texture lookup with projection and explicit level-of-detail</refpurpose>\r
18 </refnamediv>\r
19 <refsynopsisdiv><title>Declaration</title>\r
20 <funcsynopsis>\r
21 <funcprototype>\r
22 <funcdef>gvec4 <function>textureProjLod</function></funcdef>\r
23 <paramdef>gsampler1D <parameter>sampler</parameter></paramdef>\r
24 <paramdef>vec2 <parameter>P</parameter></paramdef>\r
25 <paramdef>float <parameter>lod</parameter></paramdef>\r
26 </funcprototype>\r
27 <funcprototype>\r
28 <funcdef>gvec4 <function>textureProjLod</function></funcdef>\r
29 <paramdef>gsampler1D <parameter>sampler</parameter></paramdef>\r
30 <paramdef>vec4 <parameter>P</parameter></paramdef>\r
31 <paramdef>float <parameter>lod</parameter></paramdef>\r
32 </funcprototype>\r
33 <funcprototype>\r
34 <funcdef>gvec4 <function>textureProjLod</function></funcdef>\r
35 <paramdef>gsampler2D <parameter>sampler</parameter></paramdef>\r
36 <paramdef>vec3 <parameter>P</parameter></paramdef>\r
37 <paramdef>float <parameter>lod</parameter></paramdef>\r
38 </funcprototype>\r
39 <funcprototype>\r
40 <funcdef>gvec4 <function>textureProjLod</function></funcdef>\r
41 <paramdef>gsampler2D <parameter>sampler</parameter></paramdef>\r
42 <paramdef>vec4 <parameter>P</parameter></paramdef>\r
43 <paramdef>float <parameter>lod</parameter></paramdef>\r
44 </funcprototype>\r
45 <funcprototype>\r
46 <funcdef>gvec4 <function>textureProjLod</function></funcdef>\r
47 <paramdef>gsampler3D <parameter>sampler</parameter></paramdef>\r
48 <paramdef>vec4 <parameter>P</parameter></paramdef>\r
49 <paramdef>float <parameter>lod</parameter></paramdef>\r
50 </funcprototype>\r
51 <funcprototype>\r
52 <funcdef>float <function>textureProjLod</function></funcdef>\r
53 <paramdef>sampler1DShadow <parameter>sampler</parameter></paramdef>\r
54 <paramdef>vec4 <parameter>P</parameter></paramdef>\r
55 <paramdef>float <parameter>lod</parameter></paramdef>\r
56 </funcprototype>\r
57 <funcprototype>\r
58 <funcdef>float <function>textureProjLod</function></funcdef>\r
59 <paramdef>sampler2DShadow <parameter>sampler</parameter></paramdef>\r
60 <paramdef>vec4 <parameter>P</parameter></paramdef>\r
61 <paramdef>float <parameter>lod</parameter></paramdef>\r
62 </funcprototype>\r
63 </funcsynopsis>\r
64 </refsynopsisdiv>\r
65 <refsect1 id="parameters"><title>Parameters</title>\r
66 <variablelist>\r
67 <varlistentry>\r
68 <term><parameter>sampler</parameter></term>\r
69 <listitem>\r
70 <para>\r
71 Specifies the sampler to which the texture from which texels will be retrieved is bound.\r
72 </para>\r
73 </listitem>\r
74 </varlistentry>\r
75 <varlistentry>\r
76 <term><parameter>P</parameter></term>\r
77 <listitem>\r
78 <para>\r
79 Specifies the texture coordinates at which texture will be sampled.\r
80 </para>\r
81 </listitem>\r
82 </varlistentry>\r
83 <varlistentry>\r
84 <term><parameter>lod</parameter></term>\r
85 <listitem>\r
86 <para>\r
87 Specifies the explicit level-of-detail from which to fetch texels.\r
88 </para>\r
89 </listitem>\r
90 </varlistentry>\r
91 </variablelist>\r
92 </refsect1>\r
93 <refsect1 id="description"><title>Description</title>\r
94 <para>\r
95 <function>textureProjLod</function> performs a texture lookup with projection from an explicitly specified level-of-detail. The texture coordinates\r
96 consumed from <parameter>P</parameter>, not including the last component of <parameter>P</parameter>,\r
97 are divided by the last component of <parameter>P</parameter>. The resulting <inlineequation><mml:math><mml:msup><mml:mn>3</mml:mn><mml:mi>rd</mml:mi></mml:msup></mml:math></inlineequation>\r
98 component of <parameter>P</parameter> in the shadow forms is used as\r
99 <inlineequation><mml:math><mml:msub><mml:mi>D</mml:mi><mml:mi>ref</mml:mi></mml:msub></mml:math></inlineequation>.\r
100 After these values are computed, the texture lookup proceeds as in <citerefentry><refentrytitle>textureLod</refentrytitle></citerefentry>,\r
101 with <parameter>lod</parameter> used to specify the level-of-detail from which the texture will be sampled.\r
102 </para>\r
103 </refsect1>\r
104 <refsect1 id="versions"><title>Version Support</title>\r
105 <informaltable frame="topbot">\r
106 #VARTABLECOLS#\r
107 <thead>\r
108 #FUNCTABLEHEADER#\r
109 <row>\r
110 <entry>textureProjLod</entry>#newin13#\r
111 </row>\r
112 </thead>\r
113 </tgroup>\r
114 </informaltable>\r
115 </refsect1>\r
116 <refsect1 id="seealso"><title>See Also</title>\r
117 <para>\r
118 <citerefentry><refentrytitle>texelFetch</refentrytitle></citerefentry>,\r
119 <citerefentry><refentrytitle>texelFetchOffset</refentrytitle></citerefentry>,\r
120 <citerefentry><refentrytitle>texture</refentrytitle></citerefentry>,\r
121 <citerefentry><refentrytitle>textureGather</refentrytitle></citerefentry>,\r
122 <citerefentry><refentrytitle>textureGatherOffset</refentrytitle></citerefentry>,\r
123 <citerefentry><refentrytitle>textureGatherOffsets</refentrytitle></citerefentry>,\r
124 <citerefentry><refentrytitle>textureGrad</refentrytitle></citerefentry>,\r
125 <citerefentry><refentrytitle>textureGradOffset</refentrytitle></citerefentry>,\r
126 <citerefentry><refentrytitle>textureLod</refentrytitle></citerefentry>,\r
127 <citerefentry><refentrytitle>textureLodOffset</refentrytitle></citerefentry>,\r
128 <citerefentry><refentrytitle>textureOffset</refentrytitle></citerefentry>,\r
129 <citerefentry><refentrytitle>textureProj</refentrytitle></citerefentry>,\r
130 <citerefentry><refentrytitle>textureProjGrad</refentrytitle></citerefentry>,\r
131 <citerefentry><refentrytitle>textureProjGradOffset</refentrytitle></citerefentry>,\r
132 <citerefentry><refentrytitle>textureProjLodOffset</refentrytitle></citerefentry>,\r
133 <citerefentry><refentrytitle>textureProjOffset</refentrytitle></citerefentry>,\r
134 <citerefentry><refentrytitle>textureQueryLod</refentrytitle></citerefentry>,\r
135 <citerefentry><refentrytitle>textureSize</refentrytitle></citerefentry>\r
136 </para>\r
137 </refsect1>\r
138 <refsect1 id="Copyright"><title>Copyright</title>\r
139 <para>\r
140 Copyright <trademark class="copyright"></trademark> 2011 Khronos Group. \r
141 This material may be distributed subject to the terms and conditions set forth in \r
142 the Open Publication License, v 1.0, 8 June 1999.\r
143 <ulink url="http://opencontent.org/openpub/">http://opencontent.org/openpub/</ulink>.\r
144 </para>\r
145 </refsect1>\r
146</refentry>\r