How to access the Stencil Buffer using C++? [Portals]

Bump.
Any help would be apreciated. :slight_smile:

I’ve found out that you could use something called SetDepthStencilState via the RHI.
Could someone explain how to use it?
The documentation is non-existent… at least i couldn’t find one.