An enzyme that catalyzes the conversion of GTP to 3',5'-cyclic gmp and pyrophosphate. It also acts on ITP and dGTP. (From Enzyme Nomenclature, 1992) EC 4.6.1.2.