typegpu
Version:
A thin layer between JS and WebGPU/WGSL that improves development experience and allows for faster iteration.
11 lines (10 loc) • 375 B
TypeScript
import { type AnyData } from '../../data/dataTypes.ts';
import type { ResolutionCtx } from '../../types.ts';
/**
* Resolves a WGSL data-type schema to a string.
* @param ctx - The resolution context.
* @param data - The data-type to resolve.
*
* @returns The resolved data-type string.
*/
export declare function resolveData(ctx: ResolutionCtx, data: AnyData): string;