Static Mesh Generation Through materials?

I want to try make it so a static mesh will spawn only on a certain landscape layer (e.g. if i had rock, grass and dirt layers i only want grass static meshes to be placed on the grass layer) i tried procedural foliage but that doesnt work so i was wondering if anyone has tried static mesh through matierals?

As far as I know, the only way to accomplish this inside of a material would be to use tessellation with a displacement map. I would not recommend that approach.

Under the foliage editor → Paint → Show Painting settings, there is a Landscape Layer box which will only paint in the Layer specified.