and s/\bNULL\b/nullptr/g for *.cpp/h/mm files not compiled on my machine
and some things suggested by cppcheck and compiler warnings.
This "u32 components" is a list of flags which attributes of the vertex loader are present. We are used to append this variable to lots of vertex generation functions, but some of them don't need it at all.