Need to change things so that we use the same attribute indices as the vshader generator, and integrate with the flags we use to reduce these disable/enable calls.