Hosmer’s 21st home run of the season was the first game-ending shot of his career.
The Rockies, who are 4-10 in their last 14 games, have limped through the last two weeks.
Jon Gray (5-3) gave up three runs, two earned, and six hits over 6 2/3 innings, striking out six and walking one.
At one point the Broncos feared Barrett would miss the 2017 season.
By Arnie Stapleton, Associated Press
The Denver Broncos’ battered defensive front got a big boost Tuesday with the return of pass rusher Shaq Barrett from a hip injury that had sidelined him since the spring.
Barrett participated in individual drills after being moved from the non-football injury list to the active roster.
The highlights the Hernangomez brothers — Hernangomi? — pinged out were clips from the popular video game NBA 2K18, which is set to hit shelves next month.
Tuesday morning, Denver Nuggets forward Juancho Hernangomez sent out an Instagram clip of him crossing his basketball-playing brother, Willy Hernangomez, over and draining a 3-pointer.