GraphicsBuffer:getElementStride

Available since LÖVE 12.0
This function is not supported in earlier versions.

Gets the size in bytes used by one array element of this GraphicsBuffer.

This may be larger than the sizes of individual array elements added together, due to internal alignment and padding requirements of different buffer usage modes.

Function

Synopsis

stride = GraphicsBuffer:getElementStride( )

Arguments

None.

Returns

number stride
The size in bytes used by one array element of this Buffer.

See Also

Other Languages