UNPKG

typegpu

Version:

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

8 lines (7 loc) 293 B
import type { AnyData } from './dataTypes.ts'; import type { BaseData } from './wgslTypes.ts'; export declare function sizeOf(schema: BaseData): number; /** * Returns the size (in bytes) of data represented by the `schema`. */ export declare function PUBLIC_sizeOf(schema: AnyData): number;