how to: override material as render element

Thanks for the input.
I am not aware about what is under the hood, but as a user, I simply would like to get a “kind of” override material in a render pass element. Same request can be apply to the vray toon outline.