LogoPixi’VN
pixi-jsFunctions

Function: generateArraySyncSTD40()

> generateArraySyncSTD40(uboElement, offsetToAdd): string

Defined in: node_modules/pixi.js/lib/rendering/renderers/gl/shader/utils/generateArraySyncSTD40.d.ts:10

Internal

This generates a function that will sync an array to the uniform buffer following the std140 layout

Parameters

uboElement

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