UNPKG

typegpu

Version:

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

9 lines (8 loc) 329 B
import { type Unstruct } from './dataTypes.ts'; import type { WgslStruct } from './wgslTypes.ts'; export interface OffsetInfo { offset: number; size: number; padding?: number | undefined; } export declare function offsetsForProps<T extends WgslStruct | Unstruct>(struct: T): Record<keyof T['propTypes'], OffsetInfo>;