In Texas, prosecutorial misconduct is usually framed as either a “Brady” violation or “false evidence” claim.
Either one of these types of claims can theoretically be raised on direct appeal, but in order for the merits of the claims to be considered by the appellate court the trial attorney would have to (1) learn of the misconduct, (2) object to it, and (3) make a record of it by means of a bill of exception or witness voir dire.
As a practical matter, if the record is not made of the alleged misconduct, you can’t raise it on direct appeal, even if you learn of the misconduct immediately after the time to file a motion for new trial expires. This is why defendants raise prosecutorial misconduct more often through an 11.07 writ of habeas corpus.