func proto samples from glgen2