pixi.js
Version:
PixiJS — The HTML5 Creation Engine =============
10 lines (9 loc) • 445 B
TypeScript
import type { UboElement } from '../../../shared/shader/types';
/**
* This generates a function that will sync an array to the uniform buffer
* following the wgsl layout
* @param uboElement - the element to generate the array sync for
* @param offsetToAdd - the offset to append at the start of the code
* @returns - the generated code
*/
export declare function generateArraySyncWGSL(uboElement: UboElement, offsetToAdd: number): string;