Skip to content

getSquareTextureInfo

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

Defined in: core/utils/SquareDataTexture.ts:59

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

Parameters

arrayType

TypedArrayConstructor

The constructor for the TypedArray.

channels

ChannelSize

The number of channels in the texture.

pixelsPerInstance

number

The number of pixels required for each instance.

capacity

number

The maximum number of instances allowed in the texture.

Returns

TextureInfo

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