---
title: "unpack2x16snorm(): IR builder function in typeshade/core/ir"
description: "unpack2x16snorm, an IR builder function in typeshade/core/ir. Unpack a u32 of two 16-bit snorm values into a vec2<f32> in -1,1 (max per component)…"
url: https://typeshade.dev/api/unpack2x16snorm/
language: en
---

# `unpack2x16snorm()`

Function in Builtins

Unpack a `u32` of two 16-bit snorm values into a `vec2<f32>` in -1,1 (max per component), the inverse of `pack2x16snorm`.

`import { unpack2x16snorm } from 'typeshade/core/ir'`

This export returns an IR node. A `"use typeshade"` file calls the builtin itself: [`unpack2x16snorm()`](https://typeshade.dev/reference/functions/unpack2x16snorm/)

The signature, the description and the examples come from the compiler's own source at commit af54ddad5.

## Syntax

```ts
const unpack2x16snorm: (v: ReadonlyNode<"u32">) => Node<"vec2<f32>">
```

## Parameters

**`v` `ReadonlyNode<'u32'>`**

## Return value

`Node<'vec2<f32>'>`

## Description

Spelled `unpackSnorm2x16` on GLSL ES 3.00.

## Targets

| Target | Support | Notes |
| --- | --- | --- |
| WGSL (WebGPU) | Supported | `unpack2x16snorm(v)`. |
| GLSL ES 3.00 (WebGL2) | Supported | `unpackSnorm2x16(v)`. |
| CPU oracle | Supported | Evaluated in `f64` by the oracle. |

## See also

- [`unpack2x16snorm()`](https://typeshade.dev/reference/functions/unpack2x16snorm/)
- [`pack2x16snorm`](https://typeshade.dev/api/pack2x16snorm/)

## Source

[`src/core/ir/node.ts`, line 1677](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/ir/node.ts#L1677), at commit af54ddad5
