How to Enable Custom Depth pass on procedural Foliage meshes ?

I am using cell shader that works only when custom depth pass is on. How can I enable this feature in procedural grass meshes spawned using landscape grass type asset. I have been looking for a solution for 6 days now still no luck. I would really appreciate any help.