Difference between revisions of "GraphicsBuffer:getElementStride"

(Created page)
 
m
 
Line 1: Line 1:
 
{{newin|[[12.0]]|120|type=function}}
 
{{newin|[[12.0]]|120|type=function}}
 
Gets the size in bytes used by one array element of this GraphicsBuffer.
 
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 ==
 
== Function ==
Line 13: Line 15:
 
== See Also ==
 
== See Also ==
 
* [[parent::GraphicsBuffer]]
 
* [[parent::GraphicsBuffer]]
 +
* [[GraphicsBuffer:getFormat]]
 
* [[GraphicsBuffer:getElementCount]]
 
* [[GraphicsBuffer:getElementCount]]
 
* [[GraphicsBuffer:getSize]]
 
* [[GraphicsBuffer:getSize]]

Latest revision as of 14:23, 26 March 2023

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