Add support for ComparsionMode for Sampler

Needed to support shadows mapping.