Tex. Code Crim. Proc. art. 15.04
The affidavit made before the magistrate or district or county attorney is called a "complaint" if it charges the commission of an offense.
Acts 1965, 59th Leg., vol. 2, p. 317, ch. 722.