IMAGESIZE(3G)

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

πŸ’– IMAGESIZE β€” like, the manual page for imageSize (that's the 3G one, bestie) πŸ’–

okay so real talk: this is the man page for imageSize, and yes it lives in section 3G because it's a GLSL thing. Let's get into it, no cap. πŸ¦‹


✨ NAME ✨

imageSize β€” retrieve the dimensions of an image πŸŽ€


🌸 DECLARATION 🌸

here's the whole lineup, all the overloads, every single one, periodt:

int imageSize(gimage1D image);

ivec2 imageSize(gimage2D image);

ivec3 imageSize(gimage3D image);

ivec2 imageSize(gimageCube image);

ivec3 imageSize(gimageCubeArray image);

ivec2 imageSize(gimageRect image);

ivec2 imageSize(gimage1DArray image);

ivec3 imageSize(gimage2DArray image);

int imageSize(gimageBuffer image);

ivec2 imageSize(gimage2DMS image);

ivec3 imageSize(gimage2DMSArray image);

🧚 PARAMETERS 🧚

  • image β€” this is the image you're asking about. like, it specifies the image to which the texture whose dimensions you wanna retrieve is bound. you're basically pointing at it like "her. tell me her size." πŸ’…

πŸ‘‘ DESCRIPTION πŸ‘‘

imageSize returns the dimensions of the image bound to image. The components in the return value get filled in, in order, with the width, height, and depth of the image. πŸ”₯

For the array forms β€” and you know which ones those are β€” the last component of the return value is the number of layers in the texture array. iconic behaviour honestly. 🌈


⭐ VERSION SUPPORT ⭐

so the original had this whole grid situation going on, and we can't do tables in here, so let's just lay it out flat. the question is "does imageSize exist in this version of the OpenGL Shading Language?" and the answer is a journey:

  • imageSize in OpenGL Shading Language Version 1.10 β€” - (nope)
  • imageSize in OpenGL Shading Language Version 1.20 β€” - (nope)
  • imageSize in OpenGL Shading Language Version 1.30 β€” - (nope)
  • imageSize in OpenGL Shading Language Version 1.40 β€” - (nope)
  • imageSize in OpenGL Shading Language Version 1.50 β€” - (nope)
  • imageSize in OpenGL Shading Language Version 3.30 β€” - (nope)
  • imageSize in OpenGL Shading Language Version 4.00 β€” - (nope)
  • imageSize in OpenGL Shading Language Version 4.10 β€” - (nope)
  • imageSize in OpenGL Shading Language Version 4.20 β€” - (nope)
  • imageSize in OpenGL Shading Language Version 4.30 β€” βœ” (SHE'S HERE πŸ’…)
  • imageSize in OpenGL Shading Language Version 4.40 β€” βœ” (here)
  • imageSize in OpenGL Shading Language Version 4.50 β€” βœ” (here)

so yeah. she showed up in 4.30 and never left. main character energy, honestly. πŸ‘‘


🫢 SEE ALSO 🫢

go read these too, they're all in the group chat:

  • textureSize()
  • imageLoad()
  • imageStore()

Copyright Β© 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. http://opencontent.org/openpub/.


Copyright Β© 2011-2014 Khronos Group


ok that's the whole page!! love that for us. πŸ’–βœ¨πŸŽ€

and a lil sign-off for the footer situation: this one came from [FIXME: source] and it's dated 01/03/2018, so that's the vibe. bye bestie, go size some images πŸ¦‹πŸ’…πŸŒΈ

πŸ“¦ where this page comes from