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