How to get the boundary of the shadowmap?not in glsl file

how to get the boundary of the shadowmap?not in glsl file