Get actual polygon rasterization mode inside shaders?

Is it possible to check out somehow inside shaders (at the GLSL level) the actual state of the polygon rasterization mode, which has been set before using glPolygonMode() at the host language level? I mean if some GLSL-intrinsic method exists for that, without necessity to send the polygon rasterization mode actual state to the shaders using user defined uniform, for example.

Thank you very much for suggestions!

This information isn’t (automatically) available in a shader. You’d need to pass it in.

Thank you very much for quick answer. You literally saved me hours of googling for nothing-)