gallivm/sample: change texture function generator api