Better fix for extra bitcast problem in mesh as function parameter. There is still something going on here which i don't understand