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

packHalf2x16 - convert two 32-bit floating-point quantities to 16-bit quantities and pack them into a

Declaration

uintpackHalf2x16(vec2v);

Description

packHalf2x16 returns an unsigned integer obtained by converting the components of a two-component
       floating-point vector to the 16-bit floating-point representation found in the OpenGL Specification, and
       then packing these two 16-bit integers into a 32-bit unsigned integer. The first vector component
       specifies the 16 least-significant bits of the result; the second component specifies the 16
       most-significant bits.

Name

       packHalf2x16 - convert two 32-bit floating-point quantities to 16-bit quantities and pack them into a
       single 32-bit integer

Parameters

v
           Specify a vector of two 32-bit floating point values that are to be converted to 16-bit
           representation and packed into the result.

See Also

packDouble2x32(), unpackDouble2x32(), unpackHalf2x16()

Version Support

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

See Also