Actually doing this as part of a custom depth of field effect makes a lot of sense. DOF already has to do the distance calculation anyways, and at the maximum blur level you could just throw away color and replace it with black.
Cheers,
Michael Noland