typegpu
Version:
A thin layer between JS and WebGPU/WGSL that improves development experience and allows for faster iteration.
14 lines (13 loc) • 730 B
TypeScript
import { type AnyWgslData } from '../../data/wgslTypes.ts';
import type { LogResources } from './types.ts';
export declare function deserializeAndStringify(serializedData: Uint32Array, argTypes: (AnyWgslData | string)[]): string[];
/**
* Reads and deserializes log data from GPU buffers, logging results to the console.
*
* @remarks
* - Log entries with IDs equal to 0 are filtered out.
* - Console messages are prepended with options.messagePrefix styled with purple background and white text.
* - A warning is displayed if the log count exceeds the limit passed in options.
* - After processing, the index buffer and the data buffer are cleared.
*/
export declare function logDataFromGPU(resources: LogResources): void;