'\" t .\" Title: textureSize .\" 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 "TEXTURESIZE" "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" textureSize \- retrieve the dimensions of a level of a texture .SH "DECLARATION" .HP \w'int\ textureSize('u .BI "int textureSize(gsampler1D\ " "sampler" ", int\ " "lod" ");" .HP \w'ivec2\ textureSize('u .BI "ivec2 textureSize(gsampler2D\ " "sampler" ", int\ " "lod" ");" .HP \w'ivec3\ textureSize('u .BI "ivec3 textureSize(gsampler3D\ " "sampler" ", int\ " "lod" ");" .HP \w'ivec2\ textureSize('u .BI "ivec2 textureSize(gsamplerCube\ " "sampler" ", int\ " "lod" ");" .HP \w'int\ textureSize('u .BI "int textureSize(sampler1DShadow\ " "sampler" ", int\ " "lod" ");" .HP \w'ivec2\ textureSize('u .BI "ivec2 textureSize(sampler2DShadow\ " "sampler" ", int\ " "lod" ");" .HP \w'ivec2\ textureSize('u .BI "ivec2 textureSize(samplerCubeShadow\ " "sampler" ", int\ " "lod" ");" .HP \w'ivec3\ textureSize('u .BI "ivec3 textureSize(samplerCubeArray\ " "sampler" ", int\ " "lod" ");" .HP \w'ivec3\ textureSize('u .BI "ivec3 textureSize(samplerCubeArrayShadow\ " "sampler" ", int\ " "lod" ");" .HP \w'ivec2\ textureSize('u .BI "ivec2 textureSize(gsamplerRect\ " "sampler" ");" .HP \w'ivec2\ textureSize('u .BI "ivec2 textureSize(gsamplerRectShadow\ " "sampler" ");" .HP \w'ivec2\ textureSize('u .BI "ivec2 textureSize(gsampler1DArray\ " "sampler" ", int\ " "lod" ");" .HP \w'ivec3\ textureSize('u .BI "ivec3 textureSize(gsampler2DArray\ " "sampler" ", int\ " "lod" ");" .HP \w'ivec2\ textureSize('u .BI "ivec2 textureSize(sampler1DArrayShadow\ " "sampler" ", int\ " "lod" ");" .HP \w'ivec3\ textureSize('u .BI "ivec3 textureSize(sampler2DArrayShadow\ " "sampler" ", int\ " "lod" ");" .HP \w'int\ textureSize('u .BI "int textureSize(gsamplerBuffer\ " "sampler" ");" .HP \w'ivec2\ textureSize('u .BI "ivec2 textureSize(gsampler2DMS\ " "sampler" ");" .HP \w'ivec3\ textureSize('u .BI "ivec3 textureSize(gsampler2DMSArray\ " "sampler" ");" .SH "PARAMETERS" .PP \fIsampler\fR .RS 4 Specifies the sampler to which the texture whose dimensions to retrieve is bound\&. .RE .PP \fIlod\fR .RS 4 Specifies the level of the texture for which to retrieve the dimensions\&. .RE .SH "DESCRIPTION" .PP \fBtextureSize\fR returns the dimensions of level \fIlod\fR (if present) of the texture bound to \fIsampler\fR\&. The components in the return value are filled in, in order, with the width, height and depth of the texture\&. For the array forms, the last component of the return value is the number of layers in the texture array\&. .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{ textureSize 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{ textureSize (samplerBuffer, samplerRect{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} T{ textureSize (samplerCube{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(), \fBtextureOffset\fR(), \fBtextureProj\fR(), \fBtextureProjGrad\fR(), \fBtextureProjGradOffset\fR(), \fBtextureProjLod\fR(), \fBtextureProjLodOffset\fR(), \fBtextureProjOffset\fR(), \fBtextureQueryLod\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