unpack2x16unorm()
Function in Builtins
Unpack a u32 of two 16-bit unorm values into a vec2<f32> in 0,1, the inverse of pack2x16unorm.
import { unpack2x16unorm } from 'typeshade'
The signature, the description and the examples come from the compiler's own source at commit 26de7be8.
Syntax
const unpack2x16unorm: (v: ReadonlyNode<"u32">) => Node<"vec2<f32>">Parameters
vReadonlyNode<'u32'>
Return value
Node<'vec2<f32>'>
Description
Spelled unpackUnorm2x16 on GLSL ES 3.00.
Targets
| Target | Support | Notes |
|---|---|---|
| WGSL (WebGPU) | Supported |
|
| GLSL ES 3.00 (WebGL2) | Supported |
|
| CPU oracle | Supported | Evaluated in f64 by the oracle. |
See also
Source
src/core/ir/node.ts, line 1909, at commit 26de7be8