UNPACKDOUBLE2X32(3G)

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

UNPACKDOUBLE2x32 πŸ’– (that's the 3G manual, bestie)

okay so picture this: you got a double, right? and you need it as two unsigned ints. that's the whole vibe. this page lives in the 3G section of the manual, and it's about the GLSL function unpackDouble2x32.


✨ NAME ✨

unpackDouble2x32 β€” produce two unsigned integers containing the bit encoding of a double precision floating point value 🫢


πŸŽ€ DECLARATION πŸŽ€

uvec2 unpackDouble2x32(double d);

🌸 PARAMETERS 🌸

  • d β€” Specifies double precision value to break into a pair of unsigned integers.

πŸ’… DESCRIPTION πŸ’…

okay so unpackDouble2x32 hands you back a two-component unsigned integer vector representation of d. and the way it does that? the bit-level representation of d is preserved β€” nothing gets squished, nothing gets lost, no cap. ✨

the first component of the returned vector contains the 32 least significant bits of the double, and the second component consists the 32 most significant bits. so it's giving "split the double down the middle, low half first." periodt. πŸ’…


πŸ‘‘ VERSION SUPPORT πŸ‘‘

which GLSL versions got this function? bestie, here's the vibe check, one line per version, no gatekeeping:

  • OpenGL Shading Language Version 1.10 β€” unpackDouble2x32: - πŸ’€
  • OpenGL Shading Language Version 1.20 β€” unpackDouble2x32: - πŸ’€
  • OpenGL Shading Language Version 1.30 β€” unpackDouble2x32: - πŸ’€
  • OpenGL Shading Language Version 1.40 β€” unpackDouble2x32: - πŸ’€
  • OpenGL Shading Language Version 1.50 β€” unpackDouble2x32: - πŸ’€
  • OpenGL Shading Language Version 3.30 β€” unpackDouble2x32: - πŸ’€
  • OpenGL Shading Language Version 4.00 β€” unpackDouble2x32: βœ” πŸ”₯
  • OpenGL Shading Language Version 4.10 β€” unpackDouble2x32: βœ” πŸ”₯
  • OpenGL Shading Language Version 4.20 β€” unpackDouble2x32: βœ” πŸ”₯
  • OpenGL Shading Language Version 4.30 β€” unpackDouble2x32: βœ” πŸ”₯
  • OpenGL Shading Language Version 4.40 β€” unpackDouble2x32: βœ” πŸ”₯
  • OpenGL Shading Language Version 4.50 β€” unpackDouble2x32: βœ” πŸ”₯

so yeah β€” 4.00 and up, she ate. anything before that is a no from her. πŸ™ˆ


πŸ¦‹ SEE ALSO πŸ¦‹

  • packDouble2x32() β€” the other half of this situationship, go read it too πŸ₯°

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


and that's the whole page, bestie πŸ’– this cutie came from the [FIXME: source] and she's dated 01/03/2018, filed under UNPACKDOUBLE2X32(3G) β€” go forth and unpack those doubles, you absolute icon πŸ‘‘βœ¨πŸŒˆ

πŸ“¦ where this page comes from