Co-Designed Optics