Moved primitive type to graphic driver.