UNPKG

typegpu

Version:

A thin layer between JS and WebGPU/WGSL that improves development experience and allows for faster iteration.

22 lines (21 loc) 762 B
import type { v2f, v4f } from '../data/wgslTypes.ts'; /** * @privateRemarks * https://gpuweb.github.io/gpuweb/wgsl/#unpack2x16float-builtin */ export declare const unpack2x16float: import("../types.ts").DualFn<(e: number) => v2f>; /** * @privateRemarks * https://gpuweb.github.io/gpuweb/wgsl/#pack2x16float-builtin */ export declare const pack2x16float: import("../types.ts").DualFn<(e: v2f) => number>; /** * @privateRemarks * https://gpuweb.github.io/gpuweb/wgsl/#unpack4x8unorm-builtin */ export declare const unpack4x8unorm: import("../types.ts").DualFn<(e: number) => v4f>; /** * @privateRemarks * https://gpuweb.github.io/gpuweb/wgsl/#pack4x8unorm-builtin */ export declare const pack4x8unorm: import("../types.ts").DualFn<(e: v4f) => number>;