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=
"textureProjLodOffsetOffset">
9 <holder>Khronos Group
</holder>
12 <refentrytitle>textureProjLodOffset
</refentrytitle>
13 <manvolnum>3G
</manvolnum>
16 <refname>textureProjLodOffset
</refname>
17 <refpurpose>perform a texture lookup with projection and explicit level-of-detail and offset
</refpurpose>
19 <refsynopsisdiv><title>Declaration
</title>
22 <funcdef>gvec4
<function>textureProjLodOffset
</function></funcdef>
23 <paramdef>gsampler1D
<parameter>sampler
</parameter></paramdef>
24 <paramdef>vec2
<parameter>P
</parameter></paramdef>
25 <paramdef>float
<parameter>lod
</parameter></paramdef>
26 <paramdef>int
<parameter>offset
</parameter></paramdef>
29 <funcdef>gvec4
<function>textureProjLodOffset
</function></funcdef>
30 <paramdef>gsampler1D
<parameter>sampler
</parameter></paramdef>
31 <paramdef>vec4
<parameter>P
</parameter></paramdef>
32 <paramdef>float
<parameter>lod
</parameter></paramdef>
33 <paramdef>int
<parameter>offset
</parameter></paramdef>
36 <funcdef>gvec4
<function>textureProjLodOffset
</function></funcdef>
37 <paramdef>gsampler2D
<parameter>sampler
</parameter></paramdef>
38 <paramdef>vec3
<parameter>P
</parameter></paramdef>
39 <paramdef>float
<parameter>lod
</parameter></paramdef>
40 <paramdef>ivec2
<parameter>offset
</parameter></paramdef>
43 <funcdef>gvec4
<function>textureProjLodOffset
</function></funcdef>
44 <paramdef>gsampler2D
<parameter>sampler
</parameter></paramdef>
45 <paramdef>vec4
<parameter>P
</parameter></paramdef>
46 <paramdef>float
<parameter>lod
</parameter></paramdef>
47 <paramdef>ivec2
<parameter>offset
</parameter></paramdef>
50 <funcdef>gvec4
<function>textureProjLodOffset
</function></funcdef>
51 <paramdef>gsampler3D
<parameter>sampler
</parameter></paramdef>
52 <paramdef>vec4
<parameter>P
</parameter></paramdef>
53 <paramdef>float
<parameter>lod
</parameter></paramdef>
54 <paramdef>ivec3
<parameter>offset
</parameter></paramdef>
57 <funcdef>float
<function>textureProjLodOffset
</function></funcdef>
58 <paramdef>sampler1DShadow
<parameter>sampler
</parameter></paramdef>
59 <paramdef>vec4
<parameter>P
</parameter></paramdef>
60 <paramdef>float
<parameter>lod
</parameter></paramdef>
61 <paramdef>int
<parameter>offset
</parameter></paramdef>
64 <funcdef>float
<function>textureProjLodOffset
</function></funcdef>
65 <paramdef>sampler2DShadow
<parameter>sampler
</parameter></paramdef>
66 <paramdef>vec4
<parameter>P
</parameter></paramdef>
67 <paramdef>float
<parameter>lod
</parameter></paramdef>
68 <paramdef>ivec2
<parameter>offset
</parameter></paramdef>
72 <refsect1 id=
"parameters"><title>Parameters
</title>
75 <term><parameter>sampler
</parameter></term>
78 Specifies the sampler to which the texture from which texels will be retrieved is bound.
83 <term><parameter>P
</parameter></term>
86 Specifies the texture coordinates at which texture will be sampled.
91 <term><parameter>lod
</parameter></term>
94 Specifies the explicit level-of-detail from which to fetch texels.
99 <term><parameter>offset
</parameter></term>
102 Specifies the offset, in texels, to be applied to
<parameter>P
</parameter> before fetching texels.
108 <refsect1 id=
"description"><title>Description
</title>
110 <function>textureProjLodOffset
</function> performs a texture lookup with projection from an explicitly specified level-of-detail with an offset applied
111 to the texture coordinates before sampling. The texture coordinates
112 consumed from
<parameter>P
</parameter>, not including the last component of
<parameter>P
</parameter>,
113 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>
114 component of
<parameter>P
</parameter> in the shadow forms is used as
115 <inlineequation><mml:math><mml:msub><mml:mi>D
</mml:mi><mml:mi>ref
</mml:mi></mml:msub></mml:math></inlineequation>.
116 After these values are computed, the texture lookup proceeds as in
<citerefentry><refentrytitle>textureLodOffset
</refentrytitle></citerefentry>,
117 with
<parameter>lod
</parameter> used to specify the level-of-detail from which the texture will be sampled and
<parameter>offset
</parameter>
118 used to specifiy the offset, in texels, to be applied to the texture coordinates before sampling.
121 <refsect1 id=
"versions"><title>Version Support
</title>
122 <informaltable frame=
"topbot">
127 <entry>textureProjLodOffset
</entry>#newin13#
133 <refsect1 id=
"seealso"><title>See Also
</title>
135 <citerefentry><refentrytitle>texelFetch
</refentrytitle></citerefentry>,
136 <citerefentry><refentrytitle>texelFetchOffset
</refentrytitle></citerefentry>,
137 <citerefentry><refentrytitle>texture
</refentrytitle></citerefentry>,
138 <citerefentry><refentrytitle>textureGather
</refentrytitle></citerefentry>,
139 <citerefentry><refentrytitle>textureGatherOffset
</refentrytitle></citerefentry>,
140 <citerefentry><refentrytitle>textureGatherOffsets
</refentrytitle></citerefentry>,
141 <citerefentry><refentrytitle>textureGrad
</refentrytitle></citerefentry>,
142 <citerefentry><refentrytitle>textureGradOffset
</refentrytitle></citerefentry>,
143 <citerefentry><refentrytitle>textureLod
</refentrytitle></citerefentry>,
144 <citerefentry><refentrytitle>textureLodOffset
</refentrytitle></citerefentry>,
145 <citerefentry><refentrytitle>textureOffset
</refentrytitle></citerefentry>,
146 <citerefentry><refentrytitle>textureProj
</refentrytitle></citerefentry>,
147 <citerefentry><refentrytitle>textureProjGrad
</refentrytitle></citerefentry>,
148 <citerefentry><refentrytitle>textureProjGradOffset
</refentrytitle></citerefentry>,
149 <citerefentry><refentrytitle>textureProjLod
</refentrytitle></citerefentry>,
150 <citerefentry><refentrytitle>textureProjOffset
</refentrytitle></citerefentry>,
151 <citerefentry><refentrytitle>textureQueryLod
</refentrytitle></citerefentry>,
152 <citerefentry><refentrytitle>textureSize
</refentrytitle></citerefentry>
155 <refsect1 id=
"Copyright"><title>Copyright
</title>
157 Copyright
<trademark class=
"copyright"></trademark> 2011 Khronos Group.
158 This material may be distributed subject to the terms and conditions set forth in
159 the Open Publication License, v
1.0,
8 June
1999.
160 <ulink url=
"http://opencontent.org/openpub/">http://opencontent.org/openpub/
</ulink>.