'\" t .\" Title: texelFetch .\" 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 "TEXELFETCH" "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" texelFetch \- perform a lookup of a single texel within a texture .SH "DECLARATION" .HP \w'gvec4\ texelFetch('u .BI "gvec4 texelFetch(gsampler1D\ " "sampler" ", int\ " "P" ", int\ " "lod" ");" .HP \w'gvec4\ texelFetch('u .BI "gvec4 texelFetch(gsampler2D\ " "sampler" ", ivec2\ " "P" ", int\ " "lod" ");" .HP \w'gvec4\ texelFetch('u .BI "gvec4 texelFetch(gsampler3D\ " "sampler" ", ivec3\ " "P" ", int\ " "lod" ");" .HP \w'gvec4\ texelFetch('u .BI "gvec4 texelFetch(gsampler2DRect\ " "sampler" ", ivec2\ " "P" ");" .HP \w'gvec4\ texelFetch('u .BI "gvec4 texelFetch(gsampler1DArray\ " "sampler" ", ivec2\ " "P" ", int\ " "lod" ");" .HP \w'gvec4\ texelFetch('u .BI "gvec4 texelFetch(gsampler2DArray\ " "sampler" ", ivec3\ " "P" ", int\ " "lod" ");" .HP \w'gvec4\ texelFetch('u .BI "gvec4 texelFetch(gsamplerBuffer\ " "sampler" ", int\ " "P" ");" .HP \w'gvec4\ texelFetch('u .BI "gvec4 texelFetch(gsampler2DMS\ " "sampler" ", ivec2\ " "P" ", sample\ " "sample" ");" .HP \w'gvec4\ texelFetch('u .BI "gvec4 texelFetch(gsampler2DMSArray\ " "sampler" ", ivec3\ " "P" ", sample\ " "sample" ");" .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 \fIlod\fR .RS 4 If present, specifies the level\-of\-detail within the texture from which the texel will be fetched\&. .RE .PP \fIsample\fR .RS 4 For multisampled fetches, specifies which sample within the texel from which which will be returned\&. .RE .SH "DESCRIPTION" .PP \fBtexelFetch\fR performs a lookup of a single texel from texture coordinate \fIP\fR in the texture bound to \fIsampler\fR\&. The array layer is specified in the last component of \fIP\fR for array forms\&. The \fIlod\fR parameter (if present) specifies the level\-of\-detail from which the texel will be fetched\&. The \fIsample\fR specifies which sample within the texel will be returned when reading from a multi\-sample texure\&. .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 l c c c c c c c c c c c c. T{ texelFetch 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{ texelFetch (gsampler2DRect, gsamplerBuffer) 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{ texelFetch (gsampler2DMS, gsampler2DMSArray) 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(), \fBtexture\fR(), \fBtextureGather\fR(), \fBtextureGatherOffset\fR(), \fBtextureGatherOffsets\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