If the court finds that evidence exists to support a finding of incompetency to stand trial and the court and the counsel for each party agree that the defendant is incompetent to stand trial, the court shall proceed in the same manner as if a jury had been impaneled and had found the defendant incompetent to stand trial.
Tex. Code Crim. Proc. § 46B.054