Oh, I begin to catch you, sorry for the misunderstanding!
Well, I started this because I realised the problem with the POM function. In fact I could use the same: set the Texture Samples inside the function as Shared Wrap, but the problem is that, in that certain function, there are no Texture Samples nodes. The Texture Object enter directly into a Custom code node, so I can’t find a way to get this function working on 7 Macro layered materials. Not sure if there are other functions like this, but I have tried some as you mentioned and trully they have the Texture Samples inside, and yes, the Texture Objects which enter inside a Texture Sample (wrap) doesn’t consume one slot! But the Texture Object which doesn’t enter inside a Texture Sample, does it, like in POM.
Thank you.