computeTextureDataSize
fun computeTextureDataSize(format: Texture.Format, type: Texture.Type, stride: Int, height: Int, alignment: Int): Int
Computes the required buffer size for pixel data given format, type, stride, and alignment parameters.
Return
Required buffer size in bytes
Parameters
format
Pixel color format
type
Pixel data type
stride
Stride in pixels (0 = tightly packed)
height
Height in pixels
alignment
Alignment in bytes