UNPKG

typegpu

Version:

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

4 lines (3 loc) 111 B
export function assertExhaustive(x, location) { throw new Error(`Failed to handle ${x} at ${location}`); }