Modifying Shadergraph file for Stencil functionality

Hi
Anyone know if there is a way to modify a shadergraph file to have stencil functionality?

In the shader file I need to add this to Properties

[Enum(Equal, 3, NotEqual, 6)] stest("Stencil Test", int) = 3

and this to every SubShader

Stencil {
        Ref 1
        comp[stest]
        }

[bump] Anyone???

Same here- double bump!

URP and HDRP use the stencil buffer to accelerate their rendering already, and thus writing to it in your shaders could cause issues.