struct

Structures can be declared with the struct keyword the same way as in GLSL. The syntax is:

struct <name> {
    <element 1 type> <element 1 name>;
    <element 2 type> <element 2 name>;
    <...>
};

The structure can then be used as a type name in most contexts.

Example:

struct Vertex {
    vec3 coord;
    vec3 normal;
    vec2 texCoord;
};