Texas Tech quarterback Patrick Mahomes II recently underwent offseason surgery on his left wrist and will require rehab, a source confirmed to ESPN.

It's unclear how the surgery and recovery will affect Mahomes' decision whether to enter the NFL draft. The junior is currently Mel Kiper Jr.'s No. 2-ranked quarterback prospect for the 2017 draft.

Mahomes' wrist surgery was first reported by RedRaiderSports.com.

Mahomes suffered the injury -- which was to the scaphoid bone in his left wrist, a source told ESPN's Jake Trotter -- during the Red Raiders' 66-59 loss to Oklahoma in October and played through the team's final five games despite it.

He also played eight games with an AC joint sprain in the shoulder of his throwing (right) arm, which is still healing.

Despite the injuries, Mahomes started every game for Texas Tech this season and finished as the nation's leading passer, with 5,052 yards. He leads all Football Bowl Subdivision quarterbacks in total yards (5,337) and touchdowns (53).