• Converts two normalized f32s to i16s and then packs them in a u32

    This should implement the same behaviour as the builtin pack2x16snorm from WGSL.

    Caller is responsible to ensuring inputs are normalized f32s

    Parameters

    • x: number

      first f32 to be packed

    • y: number

      second f32 to be packed

    Returns number

    a number that is expected result of pack2x16snorm.

Generated using TypeDoc