Scene pass in shader

Is there currently any way of checking which pass we are currently rendering in the shader? Similar to the VS PS defines in the quad or alternatively using uniform float for the index of the pass.

Just found it is actually possible with VS, PS defines.