IMAGESAMPLES(3G)

πŸ“¦
version 1.0~svn33624 Β· 4 versions
, in ubuntu jammy, ubuntu noble

<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