vec4s
vec4s are four-dimensional vectors typically composed of four floating-point components. In shader languages and graphics APIs, a vec4 usually represents x, y, z, and w components. While the term vec4s is plural, it is commonly used to refer to the data type consisting of four floats or to an array of such vectors. Each component is a 32-bit float in most implementations, yielding a 16-byte data structure.
In GLSL, vec4 is a built-in type for a vector of four floats. HLSL uses float4. Mathematically,
Common uses include transforming 3D points by a 4x4 matrix, where a point (x, y, z, 1)
Memory layout is typically tightly packed, and in performance-critical code compilers or engines may align vec4