Skip to content

getSquareTextureInfo

getSquareTextureInfo(arrayType, channels, pixelsPerInstance, capacity): TextureInfo

Defined in: core/SquareDataTexture.ts:59

Generates texture information (size, format, type) for a square texture based on the provided parameters.

TypedArrayConstructor

The constructor for the TypedArray.

ChannelSize

The number of channels in the texture.

number

The number of pixels required for each instance.

number

The maximum number of instances allowed in the texture.

TextureInfo

An object containing the texture’s array, size, format, and data type.