Difference between revisions of "BufferDataFormat"
(Created page) |
m |
||
Line 1: | Line 1: | ||
+ | {{newin|[[12.0]]|120|type=enum}} | ||
Data formats of individual array elements in [[GraphicsBuffer]]s and [[Mesh]]es. | Data formats of individual array elements in [[GraphicsBuffer]]s and [[Mesh]]es. | ||
Latest revision as of 17:43, 26 March 2023
Available since LÖVE 12.0 |
This enum is not supported in earlier versions. |
Data formats of individual array elements in GraphicsBuffers and Meshes.
Contents
Constants
Data Format string | Description | Vertex buffers | Index buffers | Texel buffers | Shader Storage buffers | Indirect Arguments buffers |
---|---|---|---|---|---|---|
float | Single 32 bit floating point number. | Yes | Yes | Yes | ||
floatvec2 | 2-component vector of 32 bit floats. | Yes | Yes | Yes | ||
floatvec3 | 3-component vector of 32 bit floats. | Yes | Yes | Yes | ||
floatvec4 | 4-component vector of 32 bit floats. | Yes | Yes | Yes | ||
floatmat2x2 | Matrix of 32 bit floats with 2 rows and 2 columns. | Yes | ||||
floatmat2x3 | Matrix of 32 bit floats with 2 rows and 3 columns. | Yes | ||||
floatmat2x4 | Matrix of 32 bit floats with 2 rows and 4 columns. | Yes | ||||
floatmat3x2 | Matrix of 32 bit floats with 3 rows and 2 columns. | Yes | ||||
floatmat3x3 | Matrix of 32 bit floats with 3 rows and 3 columns. | Yes | ||||
floatmat3x4 | Matrix of 32 bit floats with 3 rows and 4 columns. | Yes | ||||
floatmat4x2 | Matrix of 32 bit floats with 4 rows and 2 columns. | Yes | ||||
floatmat4x3 | Matrix of 32 bit floats with 4 rows and 3 columns. | Yes | ||||
floatmat4x4 | Matrix of 32 bit floats with 4 rows and 4 columns. | Yes | ||||
int32 | Single 32 bit signed integer. | Yes | Yes | Yes | Yes | |
int32vec2 | 2-component vector of 32 bit signed integers. | Yes | Yes | Yes | ||
int32vec3 | 3-component vector of 32 bit signed integers. | Yes | Yes | Yes | ||
int32vec4 | 4-component vector of 32 bit signed integers. | Yes | Yes | Yes | ||
uint32 | Single 32 bit unsigned integer. | Yes | Yes | Yes | Yes | Yes |
uint32vec2 | 2-component vector of 32 bit unsigned integers. | Yes | Yes | Yes | ||
uint32vec3 | 3-component vector of 32 bit unsigned integers. | Yes | Yes | Yes | ||
uint32vec4 | 4-component vector of 32 bit unsigned integers. | Yes | Yes | Yes | ||
snorm8vec4 | 4-component vector of 8 bit signed fixed-point normalized numbers. | Yes | ||||
unorm8vec4 | 4-component vector of 8 bit unsigned fixed-point normalized numbers. Useful for colors. | Yes | Yes | |||
int8vec4 | 4-component vector of 8 bit signed integers. | Yes | Yes | |||
uint8vec4 | 4-component vector of 8 bit unsigned integers. | Yes | Yes | |||
snorm16vec2 | 2-component vector of 16 bit signed fixed-point normalized numbers. | Yes | ||||
snorm16vec4 | 4-component vector of 16 bit signed fixed-point normalized numbers. | Yes | ||||
unorm16vec2 | 2-component vector of 16 bit unsigned fixed-point normalized numbers. | Yes | Yes | |||
unorm16vec4 | 4-component vector of 16 bit unsigned fixed-point normalized numbers. | Yes | Yes | |||
int16vec2 | 2-component vector of 16 bit signed integers. | Yes | Yes | |||
int16vec4 | 4-component vector of signed 16 bit integers. | Yes | Yes | |||
uint16 | Single 16 bit unsigned integer. | Yes | Yes | Yes | ||
uint16vec2 | 4-component vector of 16 bit unsigned integers. | Yes | Yes | |||
uint16vec4 | 4-component vector of 16 bit unsigned integers. | Yes | Yes |
Notes
The int and uint data formats (including vectors of them) can only be used in vertex buffers if the 'glsl3' GraphicsFeature is supported and a glsl3 Shader is used.
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