Optimization-Changing LOD Distance Based on DOF(Depth of field) effect

is there anyway to implement based on c++(or blueprint)? DOF is a heavy task and
or… I just need to find how to change lod distance on c++.