Utility static class providing functionality to pack float values to various storage representations.

Methods

Methods

  • Packs a float to a 16-bit half-float representation used by the GPU.

    Parameters

    • value: number

      The float value to pack.

    Returns number

    The packed value.