UNPACKDOUBLE2X32(3G)
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 π
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
- 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