An enzyme found especially in red blood cells that dehydrogenates glucose-6-phosphate in a glucose degradation pathway alternative to the Krebs cycle