typegpu
Version:
A thin layer between JS and WebGPU/WGSL that improves development experience and allows for faster iteration.
9 lines (8 loc) • 373 B
TypeScript
import { type AnyData } from './dataTypes.ts';
import { type BaseData } from './wgslTypes.ts';
export declare function alignmentOf(data: BaseData): number;
export declare function customAlignmentOf(data: BaseData): number;
/**
* Returns the alignment (in bytes) of data represented by the `schema`.
*/
export declare function PUBLIC_alignmentOf(schema: AnyData): number;