Material Node for Geometry Directly Visible to Camera

Is there a node I could use that, for each pixel in a material, return 1 or 0 based on whether it is being blocked by geometry, so that I could choose not to displace, tessellate, etc. that area?

Is this already implemented in the engine as an optimization feature?

No, visibility calculated separately.