logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

unpackHalf2x16 - convert two 16-bit floating-point values packed into a single 32-bit integer into a

Declaration

vec2unpackHalf2x16(uintv);

Description

unpackHalf2x16 returns a two-component floating-point vector with components obtained by unpacking a
       32-bit unsigned integer into a pair of 16-bit values, interpreting those values as 16-bit floating-point
       numbers according to the OpenGL Specification, and converting them to 32-bit floating-point values. The
       first component of the vector is obtained from the 16 least-significant bits of v; the second component
       is obtained from the 16 most-significant bits of v.

Name

       unpackHalf2x16 - convert two 16-bit floating-point values packed into a single 32-bit integer into a
       vector of two 32-bit floating-point quantities

Parameters

v
           Specify a single 32-bit unsigned integer values that contains two 16-bit floating point values to be
           unpacked.

See Also

packDouble2x32(), unpackDouble2x32(), packHalf2x16()

Version Support

       ┌────────────────┬───────────────────────────────────────────────────────────────────────────────────┐
       │                │        OpenGLShadingLanguageVersion                                            │
       ├────────────────┼──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┤
       │ Function1.101.201.301.401.503.304.004.104.204.304.404.50 │
       │ Name           │      │      │      │      │      │      │      │      │      │      │      │      │
       ├────────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
       │ unpackHalf2x16 │  -   │  -   │  -   │  -   │  -   │  -   │  -   │  -   │  ✔   │  ✔   │  ✔   │  ✔   │
       └────────────────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┘

See Also