A two-dimensional charge coupled device (CCD) detector, based on the Texas Instruments ‘‘virtual phase’’ CCD, has been developed for synchrotron radiation applications. Simultaneous near-edge and multilayer scattering experiments have been carried out with the detector on an energy-dispersive synchrotron beamline. The detector was used in an optical mode where the CCD element is coupled to a phosphor screen by a pair of focusing and demagnifying lenses. We report on the performance of the detector in this mode.