'\" t .\" Title: textureQueryLod .\" 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 "TEXTUREQUERYLOD" "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" textureQueryLod \- compute the level\-of\-detail that would be used to sample from a texture .SH "DECLARATION" .HP \w'vec2\ textureQueryLod('u .BI "vec2 textureQueryLod(gsampler1D\ " "sampler" ", float\ " "P" ");" .HP \w'vec2\ textureQueryLod('u .BI "vec2 textureQueryLod(gsampler2D\ " "sampler" ", vec2\ " "P" ");" .HP \w'vec2\ textureQueryLod('u .BI "vec2 textureQueryLod(gsampler3D\ " "sampler" ", vec3\ " "P" ");" .HP \w'vec2\ textureQueryLod('u .BI "vec2 textureQueryLod(gsamplerCube\ " "sampler" ", vec3\ " "P" ");" .HP \w'vec2\ textureQueryLod('u .BI "vec2 textureQueryLod(gsampler1DArray\ " "sampler" ", float\ " "P" ");" .HP \w'vec2\ textureQueryLod('u .BI "vec2 textureQueryLod(gsampler2DDArray\ " "sampler" ", vec2\ " "P" ");" .HP \w'vec2\ textureQueryLod('u .BI "vec2 textureQueryLod(gsamplerCubeArray\ " "sampler" ", vec3\ " "P" ");" .HP \w'vec2\ textureQueryLod('u .BI "vec2 textureQueryLod(gsampler1DShadow\ " "sampler" ", float\ " "P" ");" .HP \w'vec2\ textureQueryLod('u .BI "vec2 textureQueryLod(gsampler2DShadow\ " "sampler" ", vec2\ " "P" ");" .HP \w'vec2\ textureQueryLod('u .BI "vec2 textureQueryLod(gsamplerCubeShadow\ " "sampler" ", vec3\ " "P" ");" .HP \w'vec2\ textureQueryLod('u .BI "vec2 textureQueryLod(gsampler1DArrayShadow\ " "sampler" ", float\ " "P" ");" .HP \w'vec2\ textureQueryLod('u .BI "vec2 textureQueryLod(gsampler2DArrayShadow\ " "sampler" ", vec2\ " "P" ");" .HP \w'vec2\ textureQueryLod('u .BI "vec2 textureQueryLod(gsamplerCubeArrayShadow\ " "sampler" ", vec3\ " "P" ");" .SH "PARAMETERS" .PP \fIsampler\fR .RS 4 Specifies the sampler to which the texture whose level\-of\-detail will be queried is bound\&. .RE .PP \fIP\fR .RS 4 Specifies the texture coordinates at which the level\-of\-detail will be queried\&. .RE .SH "DESCRIPTION" .PP \fIAvailable only in the fragment shader\fR, \fBtextureQueryLod\fR computes the level\-of\-detail that would be used to sample from a texture\&. The mipmap array(s) that would be accessed is returned in the \fIx\fR component of the return value\&. The computed level\-of\-detail relative to the base level is returned in the \fIy\fR component of the return value\&. .PP If called on an incomplete texture, the result of the operation is undefined\&. .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{ textureQueryLod 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(), \fBtextureOffset\fR(), \fBtextureProj\fR(), \fBtextureProjGrad\fR(), \fBtextureProjGradOffset\fR(), \fBtextureProjLod\fR(), \fBtextureProjLodOffset\fR(), \fBtextureProjOffset\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