2-hydroxyacid dehydrogenase that is capable to reduce pyruvate, hydroxypyruvate and glyoxylate in a NADPH- or NADH-dependent manner (PubMed:26615399). In contrast to 2-HadhD/morA, does not recognize 4-methyl-2-oxopentanoate (MOA) as a substrate (PubMed:26615399). a (2R)-2-hydroxycarboxylate + NADP(+) = a 2-oxocarboxylate + H(+) + NADPH kcat is 14.0 sec(-1) with pyruvate as substrate. kcat is 170.0 sec(-1) with hydroxypyruvate as substrate. kcat is 591.0 sec(-1) with glyoxylate as substrate. Belongs to the D-isomer specific 2-hydroxyacid dehydrogenase family.