HDRP Shader Graph Stencil Buffer?

How do I use the stencil buffer with hdrp shader graph?

I see the option in the fullscreen shader graph, but in HDRP Lit it seem to be missing!

Am I missing something?

You’ve missed the last 7 years, during which the SRP developers have made it clear that they have their own vision of what people need. There’s a thread in this topic about the stencil buffer, and it’s a few years old. Support for the stencil buffer is just a couple of lines of code. But the developers have other priorities.

I think I read the other thread, but when I saw that it was set up perfectly in the fullscreen graph I though surely I’m just not seeing the setting for it :frowning:

HDRP already heavily uses the stencil buffer to store data, leaving only 2 bits available for general use :confused:

The easiest way to do custom stencil operations is to use custom passes.