How to setup and invoke post-process shader in c++?

Inputs are: light positions, numbers of samples, amount of rays etc. I haven’t found this type of fuction yet, need to look again. At the moment i know only custom node, there hlsl code may be put into. Will search for the one you’ve mentioned, thanks!