'\" t .\" Title: textureGatherOffsets .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: 05/21/2015 .\" Manual: [FIXME: manual] .\" Source: [FIXME: source] .\" Language: English .\" .TH "TEXTUREGATHEROFFSETS" "3G" "05/21/2015" "[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" textureGatherOffsets \- gathers four texels from a texture with an array of offsets .SH "DECLARATION" .HP \w'gvec4\ textureGatherOffsets('u .BI "gvec4 textureGatherOffsets(gsampler2D\ " "sampler" ", vec2\ " "P" ", ivec2\ " "offsets[4]" ", [int\ " "comp]" ");" .HP \w'gvec4\ textureGatherOffsets('u .BI "gvec4 textureGatherOffsets(gsampler2DArray\ " "sampler" ", vec3\ " "P" ", ivec2\ " "offsets[4]" ", [int\ " "comp]" ");" .HP \w'gvec4\ textureGatherOffsets('u .BI "gvec4 textureGatherOffsets(gsampler2DRect\ " "sampler" ", vec3\ " "P" ", ivec2\ " "offsets[4]" ", [int\ " "comp]" ");" .HP \w'vec4\ textureGatherOffsets('u .BI "vec4 textureGatherOffsets(gsampler2DShadow\ " "sampler" ", vec2\ " "P" ", float\ " "refZ" ", ivec2\ " "offsets[4]" ");" .HP \w'vec4\ textureGatherOffsets('u .BI "vec4 textureGatherOffsets(gsampler2DArrayShadow\ " "sampler" ", vec3\ " "P" ", float\ " "refZ" ", ivec2\ " "offsets[4]" ");" .HP \w'vec4\ textureGatherOffsets('u .BI "vec4 textureGatherOffsets(gsampler2DRectShadow\ " "sampler" ", vec3\ " "P" ", float\ " "refZ" ", ivec2\ " "offsets[4]" ");" .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 \fIcomp\fR .RS 4 Specifies the component of the source texture that will be used to generate the resulting vector\&. .RE .PP \fIrefZ\fR .RS 4 Specifies the reference Z value used in the comparison for shadow forms\&. .RE .PP \fIoffsets\fR .RS 4 Specifies an array of offsets from the specified texture coordinate \fIP\fR from which the texels will be gathered\&. .RE .SH "DESCRIPTION" .PP \fBtextureGatherOffsets\fR operates identically to \fBtextureGatherOffset\fR(), except that \fIoffsets\fR is used to determine the location of the four texels to sample\&. Each of the four texels is obtained by applying the offset in \fIoffsets\fR as a (u, v) coordinate offset to \fIP\fR, identifying the four\-texel \fBGL_LINEAR\fR footprint, and then selecting the texel i0i0 of that footprint\&. The specified values in \fIoffsets\fR must be set with constant integral expressions\&. .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. T{ textureGatherOffsets 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 .SH "SEE ALSO" .PP \fBtexelFetch\fR(), \fBtexelFetchOffset\fR(), \fBtexture\fR(), \fBtextureGather\fR(), \fBtextureGatherOffset\fR(), \fBtextureGrad\fR(), \fBtextureGradOffset\fR(), \fBtextureLod\fR(), \fBtextureLodOffset\fR(), \fBtextureOffset\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 2011-2014 Khronos Group .br