How to access the Custom Depth Stencil inside a global shader?

Bump! Still haven’t really figured this out. I’ll update this if I manage to find a solution.