add tex primitives