VertexElementType
Enum class representing various types of vertex elements used in graphics programming.
Each vertex element type is associated with specific properties:
componentCount
: Number of components in the type (e.g., a scalar has 1, a 4-component vector has 4).sizeInBytes
: Total size in bytes required to store one instance of the type.std430AlignmentInBytes
: Alignment requirement in bytes as per the std430 layout rules in GLSL.
Entries
32-bit float, or single precision float 2-component vector
32-bit float, or single precision float 3-component vector
32-bit float, or single precision float 4-component vector
32 bit float, or single precision float 2x2 matrix
32 bit float, or single precision float 3x3 matrix
32 bit float, or single precision float 4x4 matrix
Properties
Functions
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Returns an array containing the constants of this enum type, in the order they're declared.