PACKDOUBLE2X32(3G)
π packDouble2x32 β the manual page, bestie edition β¨
okay so this is packDouble2x32(3G) from the 3G section of the manual, and babes, it is literally the glow-up spell for turning two lil unsigned ints into one big double. no cap.
πΈ NAME πΈ
packDouble2x32 β create a double-precision value from a pair of unsigned integers π«Ά
β¨ DECLARATION β¨
double packDouble2x32(uvec2 v);
that's it. that's the whole signature. she's short and she's iconic π
π PARAMETERS π
vβ bestie, this is a vector of two unsigned integers that we're packing into a single double-precision result. two girls, one double. it's giving β¨ compression β¨
π¦ DESCRIPTION π¦
okay so packDouble2x32 packs the component of the parameter v into a 64-bit value. that's the whole vibe.
β οΈ but listen. if an IEEE-754 infinity or NaN gets created, it will not signal and the resulting floating-point value is undefined. no drama, no error message, just vibes that we cannot promise you. π«
otherwise? otherwise the bit-level representation of v is preserved. untouched. pristine. flawless.
the way the bits work is genuinely so clean:
- the first vector component,
v[0], specifies the 32 least significant bits of the result π₯° - the second component,
v[1], specifies the 32 most significant bits π
low bits first, high bits second. iykyk.
π VERSION SUPPORT π
so this is the part where the original page does a whole table situation, and i love that for her, but we're doing a list, periodt. here's the OpenGL Shading Language Version tea for the function name packDouble2x32:
- 1.10 β
- - 1.20 β
- - 1.30 β
- - 1.40 β
- - 1.50 β
- - 3.30 β
- - 4.00 β β
- 4.10 β β
- 4.20 β β
- 4.30 β β
- 4.40 β β
- 4.50 β β
translation: 4.00 and up only, bestie. before that she simply did not exist. the early versions said not me π
π SEE ALSO π
unpackDouble2x32()β the reverse girly. she takes it all apart again π§
π 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, angel π
source: [FIXME: source] β yes it literally says that, we don't make the rules π« date: 01/03/2018 β an elder, but a legend π
mwah. go pack some doubles. slay ππ
π¦ 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