UNPKG

typegpu

Version:

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

8 lines (7 loc) 281 B
import type { IMeasurer, ISerialInput, ISerialOutput } from 'typed-binary'; /** * @param io the IO to align * @param baseAlignment must be power of 2 */ declare function alignIO(io: ISerialInput | ISerialOutput | IMeasurer, baseAlignment: number): void; export default alignIO;