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
The constructor for the TypedArray.
channels
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
An object containing the texture’s array, size, format, and data type.