Use uniform buffer to pass SMCount and WrapsCount