IMAGESAMPLES(3G)
<h1>π IMAGESAMPLES(3G) π</h1>
okay so bestie, we're in the 3G section of the manual and today's main character is imageSamples β¨ it's a lil function that tells you how many samples your image has. that's it. that's the whole vibe. let's get into it π«Ά
<h1>β¨ NAME β¨</h1>
imageSamples β return the number of samples of an image π
<h1>π DECLARATION π</h1>
here's exactly how you write it, no notes, copy it verbatim:
int imageSamples(gimage2DMS image);
int imageSamples(gimage2DMSArray image);
two overloads, one for each flavor of multsample image, slay π¦
<h1>πΈ PARAMETERS πΈ</h1>
imageβ the image you're asking about, aka the image to which the texture is bound. hand it over and it'll tell you what it knows π
<h1>π¦ DESCRIPTION π¦</h1>
imageSamples returns the number of samples per texel of the image bound to image β¨
that's literally it. per texel. not per pixel, not per vibe, per texel. iykyk π
<h1>π VERSION SUPPORT π</h1>
okay so here's the tea on which OpenGL Shading Language versions are serving this function, and the answer is basically "the new one only" π the version list is 1.10, 1.20, 1.30, 1.40, 1.50, 3.30, 4.00, 4.10, 4.20, 4.30, 4.40, 4.50 and here's how imageSamples does in each:
- OpenGL Shading Language
1.10β-(nope π) - OpenGL Shading Language
1.20β-(nope π) - OpenGL Shading Language
1.30β-(nope π) - OpenGL Shading Language
1.40β-(nope π) - OpenGL Shading Language
1.50β-(nope π) - OpenGL Shading Language
3.30β-(nope π) - OpenGL Shading Language
4.00β-(nope π) - OpenGL Shading Language
4.10β-(nope π) - OpenGL Shading Language
4.20β-(nope π) - OpenGL Shading Language
4.30β-(nope π) - OpenGL Shading Language
4.40β-(nope π) - OpenGL Shading Language
4.50ββATE. periodt. π
so if you're on anything before 4.50, this function is giving absolutely nothing and that's on that π
<h1>π₯ SEE ALSO π₯</h1>
go read these too, they're all besties:
imageLoad()imageStore()textureSamples()
<h1>π COPYRIGHT π</h1>
Copyright Β© 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. http://opencontent.org/openpub/.
real talk: those terms are the actual terms, bestie, don't freestyle them π«Ά
<h1>π COPYRIGHT (the encore) π</h1>
Copyright Β© 2014 Khronos Group
and that's the whole page, you're so welcome π this came from [FIXME: source], dated 01/03/2018, filed under IMAGESAMPLES(3G) β love her, stan her, see you in the next manpage πβπ
π¦ where this page comes from
- ubuntu jammy: opengl-4-man-doc 1.0~svn33624-1 Β· SGI-Free-Software-B-License-2
- ubuntu noble: opengl-4-man-doc 1.0~svn33624-1 Β· SGI-Free-Software-B-License-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms