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
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info