How can I use procedural textures as samples?

I want to use a procedural OffsetBands bands and pan it in the X axis to simulate waves. But I can’t find a node that’s like a Texture Sample but accepts input textures and changes UV. How can I do this?

Already solved the problem with the water shader