LogoPixi’VN
pixi-jsFunctions

Function: ensureAttributes()

> ensureAttributes(geometry, extractedData): void

Defined in: node_modules/pixi.js/lib/rendering/renderers/gl/shader/program/ensureAttributes.d.ts:15

Internal

This function looks at the attribute information provided to the geometry and attempts to fill in any gaps. We do this by looking at the extracted data from the shader and making best guesses.

Most of the time users don't need to provide all the attribute info beyond the data itself, so we can fill in the gaps for them. If you are using attributes in a more advanced way, don't forget to add all the info at creation!

Parameters

geometry

Geometry

the geometry to ensure attributes for

extractedData

Record<string, ExtractedAttributeData>

the extracted data from the shader

Returns

void