pixi-jsFunctions
Function: generateArraySyncWGSL()
> generateArraySyncWGSL(uboElement, offsetToAdd): string
Defined in: node_modules/pixi.js/lib/rendering/renderers/gpu/shader/utils/generateArraySyncWGSL.d.ts:10
Internal
This generates a function that will sync an array to the uniform buffer following the wgsl layout
Parameters
uboElement
the element to generate the array sync for
offsetToAdd
number
the offset to append at the start of the code
Returns
string
- the generated code