I'm not sure if its possible to do that, im not a programer at all, but i idealize something like the fog removal or the ui mask, where you select any effect between the in and out of those effects to have some condition. For example , i would like to have some kind of depth mask, cause sometimes im playing a 3rd person game, and i dont want the screenspace reflections or any other depth effect aplied near (on my character) something like that
[any other depth based effect]
The [Depthmask_top] will detect and select the depth buffer that the effects below will be aplied, then the [Depthmask_bottom] will restore the depth buffer to its original form.
That is it, im sorry for the poor english, its not my native language. if any one knows if its possible just reply to me for more details