TEXTURESAMPLES(3G)

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

πŸ’– TEXTURESAMPLES πŸ’–

okay bestie, welcome to textureSamples β€” it's a 3G manual page, it's short, it's sweet, and it's lowkey iconic. let's get into it 🫢


✨ NAME ✨

textureSamples β€” return the number of samples of a texture

like... that's literally it. that's the whole job. she counts samples. πŸ’…


✨ DECLARATION ✨

here's exactly how you summon her, no cap:

int textureSamples(gsampler2DMS sampler);

int textureSamples(gsampler2DMSArray sampler);

two glow-ups, same queen. πŸ‘‘


✨ PARAMETERS ✨

  • sampler β€” the sampler your texture is bound to. that's the one. she needs to know which texture we're talking about, so hand her the sampler and she'll take it from there. 🌸

✨ DESCRIPTION ✨

so textureSamples returns the number of samples per texel of the texture that's bound to sampler. that's it. that's the tea. β˜•βœ¨

no side quests, no drama, just: how many samples per texel? she knows. she always knows. πŸ’–


✨ VERSION SUPPORT ✨

okay so here's the vibe check on which OpenGL Shading Language Versions have her back. the function is textureSamples and the versions are 1.10, 1.20, 1.30, 1.40, 1.50, 3.30, 4.00, 4.10, 4.20, 4.30, 4.40, 4.50:

  • 1.10 β€” nope, - 😭
  • 1.20 β€” nope, - 😭
  • 1.30 β€” nope, - 😭
  • 1.40 β€” nope, - 😭
  • 1.50 β€” nope, - 😭
  • 3.30 β€” nope, - 😭
  • 4.00 β€” nope, - 😭
  • 4.10 β€” nope, - 😭
  • 4.20 β€” nope, - 😭
  • 4.30 β€” nope, - 😭
  • 4.40 β€” nope, - 😭
  • 4.50 β€” YES, βœ” πŸŽ‰πŸ”₯πŸ‘‘
so basically she didn't exist until 4.50 and then she arrived and absolutely ate. periodt. πŸ’…

✨ SEE ALSO ✨

go give her friends some love too, they're all in the group chat:

  • texture()
  • textureQueryLevels()
  • textureQueryLod()
  • textureSize()

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/.


Copyright Β© 2014 Khronos Group


and that's the whole page, bestie πŸŽ€ she's from [FIXME: source], dated 01/03/2018, and she's serving TEXTURESAMPLES(3G) energy til the end. mwah. πŸ’œπŸ¦‹πŸŒˆ

πŸ“¦ where this page comes from