HLSL Semantics (SV_VertexID, SV_VertexID, etc)

Hello All,

Is there any way to read HLSL semantics within the material editor, e.g. i would like to read the SV_PrimitiveID or SV_VertexID.
Can this be done with a custom node ?, any help would be much appreciated.