Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions gl4/html/textureGatherOffsets.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
</tr>
<tr>
<td> </td>
<td>vec3 <var class="pdparam">P</var>, </td>
<td>vec2 <var class="pdparam">P</var>, </td>
</tr>
<tr>
<td> </td>
Expand Down Expand Up @@ -227,9 +227,9 @@
<p>
<code class="function">textureGatherOffsets</code> operates identically to <a class="citerefentry" href="textureGatherOffset.xhtml"><span class="citerefentry"><span class="refentrytitle">textureGatherOffset</span></span></a>,
except that <em class="parameter"><code>offsets</code></em> is used to determine the location of the four texels to sample. Each of the four texels is obtained
by applying the offset in <em class="parameter"><code>offsets</code></em> as a (u, v) coordinate offset to <em class="parameter"><code>P</code></em>, identifying the four-texel
by applying the corresponding offset in <em class="parameter"><code>offsets</code></em> as a (u, v) coordinate offset to <em class="parameter"><code>P</code></em>, identifying the four-texel
<code class="constant">GL_LINEAR</code> footprint, and then selecting the texel
<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:msub><mml:mi>i</mml:mi><mml:mn>0</mml:mn></mml:msub><mml:msub><mml:mi>i</mml:mi><mml:mn>0</mml:mn></mml:msub></mml:math>
<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:msub><mml:mi>i</mml:mi><mml:mn>0</mml:mn></mml:msub><mml:msub><mml:mi>j</mml:mi><mml:mn>0</mml:mn></mml:msub></mml:math>
of that footprint. The specified values in <em class="parameter"><code>offsets</code></em> must be set with constant integral expressions.
</p>
</div>
Expand Down
6 changes: 3 additions & 3 deletions gl4/textureGatherOffsets.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<funcprototype>
<funcdef>gvec4 <function>textureGatherOffsets</function></funcdef>
<paramdef>gsampler2DRect <parameter>sampler</parameter></paramdef>
<paramdef>vec3 <parameter>P</parameter></paramdef>
<paramdef>vec2 <parameter>P</parameter></paramdef>
<paramdef>ivec2 <parameter>offsets[4]</parameter></paramdef>
<paramdef>[int <parameter>comp]</parameter></paramdef>
</funcprototype>
Expand Down Expand Up @@ -111,9 +111,9 @@
<para>
<function>textureGatherOffsets</function> operates identically to <citerefentry><refentrytitle>textureGatherOffset</refentrytitle></citerefentry>,
except that <parameter>offsets</parameter> is used to determine the location of the four texels to sample. Each of the four texels is obtained
by applying the offset in <parameter>offsets</parameter> as a (u, v) coordinate offset to <parameter>P</parameter>, identifying the four-texel
by applying the corresponding offset in <parameter>offsets</parameter> as a (u, v) coordinate offset to <parameter>P</parameter>, identifying the four-texel
<constant>GL_LINEAR</constant> footprint, and then selecting the texel
<inlineequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:msub><mml:mi>i</mml:mi><mml:mn>0</mml:mn></mml:msub><mml:msub><mml:mi>i</mml:mi><mml:mn>0</mml:mn></mml:msub></mml:math></inlineequation>
<inlineequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:msub><mml:mi>i</mml:mi><mml:mn>0</mml:mn></mml:msub><mml:msub><mml:mi>j</mml:mi><mml:mn>0</mml:mn></mml:msub></mml:math></inlineequation>
of that footprint. The specified values in <parameter>offsets</parameter> must be set with constant integral expressions.
</para>
</refsect1>
Expand Down