'\" t .\" Title: textureOffset .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: 01/03/2018 .\" Manual: [FIXME: manual] .\" Source: [FIXME: source] .\" Language: English .\" .TH "TEXTUREOFFSET" "3G" "01/03/2018" "[FIXME: source]" "[FIXME: manual]" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" textureOffset \- perform a texture lookup with offset .SH "DECLARATION" .HP \w'gvec4\ textureOffset('u .BI "gvec4 textureOffset(gsampler1D\ " "sampler" ", float\ " "P" ", int\ " "offset" ", [float\ " "bias" "]);" .HP \w'gvec4\ textureOffset('u .BI "gvec4 textureOffset(gsampler2D\ " "sampler" ", vec2\ " "P" ", ivec2\ " "offset" ", [float\ " "bias" "]);" .HP \w'gvec4\ textureOffset('u .BI "gvec4 textureOffset(gsampler3D\ " "sampler" ", vec3\ " "P" ", ivec3\ " "offset" ", [float\ " "bias" "]);" .HP \w'gvec4\ textureOffset('u .BI "gvec4 textureOffset(gsampler2DRect\ " "sampler" ", vec2\ " "P" ", ivec2\ " "offset" ");" .HP \w'float\ textureOffset('u .BI "float textureOffset(sampler2DRectShadow\ " "sampler" ", vec3\ " "P" ", ivec2\ " "offset" ");" .HP \w'float\ textureOffset('u .BI "float textureOffset(sampler1DShadow\ " "sampler" ", vec3\ " "P" ", int\ " "offset" ", [float\ " "bias" "]);" .HP \w'float\ textureOffset('u .BI "float textureOffset(sampler2DShadow\ " "sampler" ", vec4\ " "P" ", ivec2\ " "offset" ", [float\ " "bias" "]);" .HP \w'gvec4\ textureOffset('u .BI "gvec4 textureOffset(gsampler1DArray\ " "sampler" ", vec2\ " "P" ", int\ " "offset" ", [float\ " "bias" "]);" .HP \w'gvec4\ textureOffset('u .BI "gvec4 textureOffset(gsampler2DArray\ " "sampler" ", vec3\ " "P" ", ivec2\ " "offset" ", [float\ " "bias" "]);" .HP \w'float\ textureOffset('u .BI "float textureOffset(sampler1DArrayShadow\ " "sampler" ", vec3\ " "P" ", int\ " "offset" ");" .HP \w'float\ textureOffset('u .BI "float textureOffset(sampler2DArrayShadow\ " "sampler" ", vec4\ " "P" ", vec2\ " "offset" ");" .SH "PARAMETERS" .PP \fIsampler\fR .RS 4 Specifies the sampler to which the texture from which texels will be retrieved is bound\&. .RE .PP \fIP\fR .RS 4 Specifies the texture coordinates at which texture will be sampled\&. .RE .PP \fIoffset\fR .RS 4 Specifies offset, in texels that will be applied to \fIP\fR before looking up the texel\&. .RE .SH "DESCRIPTION" .PP \fBtextureOffset\fR performs a texture lookup at coordinate \fIP\fR from the texture bound to \fIsampler\fR with an an additional offset, specified in texels in \fIoffset\fR that will be applied to the (u, v, w) texture coordinates before looking up each texel\&. The offset value must be a constant expression\&. A limited range of offset values are supported; the minimum and maximum offset values are implementation\-dependent and may be determined by querying \fBGL_MIN_PROGRAM_TEXEL_OFFSET\fR and \fBGL_MAX_PROGRAM_TEXEL_OFFSET\fR, respectively\&. .PP Note that \fIoffset\fR does not apply to the layer coordinate for texture arrays\&. Also note that offsets are not supported for cube maps\&. .SH "VERSION SUPPORT" .TS allbox tab(:); lB cB s s s s s s s s s s s lB cB cB cB cB cB cB cB cB cB cB cB cB. T{ T}:T{ \fBOpenGL Shading Language Version\fR T} T{ \fBFunction Name\fR T}:T{ \fB1\&.10\fR T}:T{ \fB1\&.20\fR T}:T{ \fB1\&.30\fR T}:T{ \fB1\&.40\fR T}:T{ \fB1\&.50\fR T}:T{ \fB3\&.30\fR T}:T{ \fB4\&.00\fR T}:T{ \fB4\&.10\fR T}:T{ \fB4\&.20\fR T}:T{ \fB4\&.30\fR T}:T{ \fB4\&.40\fR T}:T{ \fB4\&.50\fR T} .T& l c c c c c c c c c c c c l c c c c c c c c c c c c. T{ textureOffset T}:T{ \- T}:T{ \- T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T} T{ textureOffset (gsampler2DRect{Shadow}) T}:T{ \- T}:T{ \- T}:T{ \- T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T} .TE .sp 1 .SH "SEE ALSO" .PP \fBtexelFetch\fR(), \fBtexelFetchOffset\fR(), \fBtexture\fR(), \fBtextureGather\fR(), \fBtextureGatherOffset\fR(), \fBtextureGatherOffsets\fR(), \fBtextureGrad\fR(), \fBtextureGradOffset\fR(), \fBtextureLod\fR(), \fBtextureLodOffset\fR(), \fBtextureProj\fR(), \fBtextureProjGrad\fR(), \fBtextureProjGradOffset\fR(), \fBtextureProjLod\fR(), \fBtextureProjLodOffset\fR(), \fBtextureProjOffset\fR(), \fBtextureQueryLod\fR(), \fBtextureSize\fR() .SH "COPYRIGHT" .PP Copyright \(co 2011\-2014 Khronos Group\&. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1\&.0, 8 June 1999\&. \m[blue]\fBhttp://opencontent\&.org/openpub/\fR\m[]\&. .SH "COPYRIGHT" .br Copyright \(co 2012-2014 Khronos Group .br